mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Update task render
This commit is contained in:
5
db.ts
5
db.ts
@@ -848,6 +848,11 @@ export class EhDb {
|
||||
this.db.query("DELETE FROM task WHERE id = ?;", [task.id]);
|
||||
});
|
||||
}
|
||||
delete_task_by_id(id: number) {
|
||||
return this.transaction(() => {
|
||||
this.db.query("DELETE FROM task WHERE id = ?;", [id]);
|
||||
});
|
||||
}
|
||||
delete_token(token: string) {
|
||||
this.db.query("DELETE FROM token WHERE token = ?;", [token]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user