fix: missing setSnapshotStatus in takeSnapshotForVideoWorker

This commit is contained in:
alikia2x (寒寒) 2025-04-07 00:41:27 +08:00
parent d98e24b62f
commit 69fb3604b1
Signed by: alikia2x
GPG Key ID: 56209E0CCD8420C6

View File

@ -349,6 +349,7 @@ export const takeSnapshotForVideoWorker = async (job: Job) => {
const now = Date.now();
const targetTime = now + eta * HOUR;
await scheduleSnapshot(client, aid, type, targetTime);
await setSnapshotStatus(client, id, "completed");
return `DONE`;
} catch (e) {
if (e instanceof NetSchedulerError && e.code === "NO_PROXY_AVAILABLE") {