Добавлен titleSearch

This commit is contained in:
Book Pauk
2022-10-26 17:50:48 +07:00
parent 20bb9f925a
commit 491c2f3406
4 changed files with 120 additions and 0 deletions

View File

@@ -274,6 +274,19 @@ class WebWorker {
};
}
async titleSearch(query) {
this.checkMyState();
const config = await this.dbConfig();
const result = await this.dbSearcher.titleSearch(query);
return {
title: result.result,
totalFound: result.totalFound,
inpxHash: (config.inpxHash ? config.inpxHash : ''),
};
}
async getAuthorBookList(authorId) {
this.checkMyState();