Работа над opds

This commit is contained in:
Book Pauk
2022-11-23 20:57:41 +07:00
parent 6a3b919f5f
commit 6dfa551b97
3 changed files with 21 additions and 16 deletions

View File

@@ -546,15 +546,15 @@ class DbSearcher {
try {
const db = this.db;
const depth = query.depth || 1;
const queryKey = this.queryKey(query);
const opdsKey = `${from}-opds-${queryKey}`;
const opdsKey = `${from}-opds-d${depth}-${queryKey}`;
let result = await this.getCached(opdsKey);
if (result === null) {
const ids = await this.selectTableIds(from, query);
const totalFound = ids.length;
const depth = query.depth || 1;
//группировка по name длиной depth
const found = await db.select({