fix: incorrectly set snapshot status to 'completed' when bilibili returned other status code
This commit is contained in:
parent
68bd46fd8a
commit
651eef0b9e
@ -41,7 +41,7 @@ export const snapshotVideoWorker = async (job: Job): Promise<void> => {
|
||||
const stat = await insertVideoSnapshot(client, aid, task);
|
||||
if (typeof stat === "number") {
|
||||
await setBiliVideoStatus(client, aid, stat);
|
||||
await setSnapshotStatus(client, id, "completed");
|
||||
await setSnapshotStatus(client, id, "bili_error");
|
||||
logger.warn(
|
||||
`Bilibili return status ${status} when snapshoting for ${aid}.`,
|
||||
"mq",
|
||||
|
Loading…
Reference in New Issue
Block a user