feat(admin): finalize live show settings and related tests
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled

This commit is contained in:
Codex Agent
2026-02-06 08:43:50 +01:00
parent 0a08f2704f
commit 61d1bbc707
8 changed files with 314 additions and 6 deletions

View File

@@ -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;
}