Исправление багов

This commit is contained in:
Book Pauk
2022-08-03 15:34:24 +07:00
parent 76673295bf
commit ec8fbcdf38
2 changed files with 16 additions and 15 deletions

View File

@@ -487,7 +487,7 @@ class BookManager {
await this.recentSetItem(item);
}
async setCheckBuc(value, checkBuc = true) {
async setCheckBuc(value, checkBuc) {
const item = this.recent[value.key];
const updateItems = [];
@@ -503,10 +503,11 @@ class BookManager {
}
}
const now = Date.now();
for (const book of updateItems) {
book.checkBuc = checkBuc;
if (checkBuc)
book.checkBucTime = Date.now();
book.checkBucTime = now;
await this.recentSetItem(book);
}
}