From 4af7682341107d04e738c72509bc890a1a5bcaa0 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 18 Feb 2024 20:49:38 +0800 Subject: [PATCH] Bug fix --- routes/api/task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/task.ts b/routes/api/task.ts index 5ce1e99..22a6b3e 100644 --- a/routes/api/task.ts +++ b/routes/api/task.ts @@ -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"); }