mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
add new routes: /api/tag/rows
This commit is contained in:
6
db.ts
6
db.ts
@@ -1021,6 +1021,12 @@ export class EhDb {
|
||||
);
|
||||
return s.length ? s[0] : undefined;
|
||||
}
|
||||
get_tag_rows() {
|
||||
return this.db.queryEntries<Tag>(
|
||||
"SELECT * FROM tag WHERE tag LIKE ?;",
|
||||
["rows:%"],
|
||||
);
|
||||
}
|
||||
async get_task(id: number) {
|
||||
const s = await this.transaction(() =>
|
||||
this.db.queryEntries<Task>("SELECT * FROM task WHERE id = ?;", [id])
|
||||
|
||||
Reference in New Issue
Block a user