mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Fix bug
This commit is contained in:
@@ -157,6 +157,14 @@ export const handler: Handlers = {
|
||||
} catch (e) {
|
||||
return return_error(500, e.message);
|
||||
}
|
||||
} else if (typ == "update_meili_search_data") {
|
||||
const gid = await parse_big_int(form.get("gid"), 0);
|
||||
try {
|
||||
const task = await t.add_update_meili_search_data_task(gid);
|
||||
return return_data(task, 201);
|
||||
} catch (e) {
|
||||
return return_error(500, e.message);
|
||||
}
|
||||
} else {
|
||||
return return_error(5, "unknown type");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user