mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add support to import gallery
This commit is contained in:
4
db.ts
4
db.ts
@@ -814,8 +814,8 @@ export class EhDb {
|
||||
check_download_task(gid: number | bigint, token: string) {
|
||||
return this.transaction(() => {
|
||||
const r = this.db.queryEntries<Task>(
|
||||
"SELECT * FROM task WHERE type = ? AND gid = ? AND token = ?;",
|
||||
[TaskType.Download, gid, token],
|
||||
"SELECT * FROM task WHERE (type = ? OR type = ?) AND gid = ? AND token = ?;",
|
||||
[TaskType.Download, TaskType.Import, gid, token],
|
||||
);
|
||||
return r.length ? r[0] : undefined;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user