feat(admin): finalize live show settings and related tests
This commit is contained in:
@@ -91,6 +91,7 @@ export type LiveShowLink = {
|
||||
url: string;
|
||||
qr_code_data_url: string | null;
|
||||
rotated_at: string | null;
|
||||
expires_at: string | null;
|
||||
};
|
||||
|
||||
export type TenantEvent = {
|
||||
@@ -1766,6 +1767,7 @@ function normalizeLiveShowLink(payload: JsonValue | LiveShowLink | null | undefi
|
||||
url: '',
|
||||
qr_code_data_url: null,
|
||||
rotated_at: null,
|
||||
expires_at: null,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1776,6 +1778,7 @@ function normalizeLiveShowLink(payload: JsonValue | LiveShowLink | null | undefi
|
||||
url: typeof record.url === 'string' ? record.url : '',
|
||||
qr_code_data_url: typeof record.qr_code_data_url === 'string' ? record.qr_code_data_url : null,
|
||||
rotated_at: typeof record.rotated_at === 'string' ? record.rotated_at : null,
|
||||
expires_at: typeof record.expires_at === 'string' ? record.expires_at : null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user