Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Feb 18, 2024
1 parent 6b9a7cb commit 4af7682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const handler: Handlers = {
}
}
try {
const task = t.add_download_task(gid, token, dcfg, true);
const task = await t.add_download_task(gid, token, dcfg, true);
if (task === null) {
return return_error(6, "task is already in the list");
}
Expand Down

0 comments on commit 4af7682

Please sign in to comment.