feat(admin): finalize live show settings and related tests
This commit is contained in:
@@ -166,7 +166,9 @@ class Event extends Model
|
||||
public function ensureLiveShowToken(): string
|
||||
{
|
||||
if (is_string($this->live_show_token) && $this->live_show_token !== '') {
|
||||
$this->refreshLiveShowTokenExpiry();
|
||||
if (! ($this->live_show_token_expires_at instanceof \Carbon\CarbonInterface)) {
|
||||
$this->refreshLiveShowTokenExpiry();
|
||||
}
|
||||
|
||||
return $this->live_show_token;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user