typo fix: s/firstUncommited/firstUncommitted/

The typo prevented the "@" URL constraint from being correctly added,
so a backend restart could change the video to point somewhere
unintended.
This commit is contained in:
Scott Lamb 2021-03-13 21:51:59 -08:00
parent 56661924ae
commit 182ed23a06

View File

@ -183,7 +183,7 @@ export async function logout(req: LogoutRequest, init: RequestInit) {
export interface Recording { export interface Recording {
startId: number; startId: number;
endId?: number; endId?: number;
firstUncommited?: number; firstUncommitted?: number;
growing?: boolean; growing?: boolean;
openId: number; openId: number;
startTime90k: number; startTime90k: number;
@ -256,7 +256,7 @@ export function recordingUrl(
if (r.endId !== undefined) { if (r.endId !== undefined) {
s += `-${r.endId}`; s += `-${r.endId}`;
} }
if (r.firstUncommited !== undefined) { if (r.firstUncommitted !== undefined) {
s += `@${r.openId}`; s += `@${r.openId}`;
} }
return withQuery(`/api/cameras/${cameraUuid}/${stream}/view.mp4`, { return withQuery(`/api/cameras/${cameraUuid}/${stream}/view.mp4`, {