mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix: properly filter out invalidKeys when backing up
This commit is contained in:
@@ -26,7 +26,7 @@ export default class Backup {
|
||||
throw new Error("Invalid type. It must be one of 'mobile' or 'web'.");
|
||||
|
||||
const keys = (await this._db.context.getAllKeys()).filter(
|
||||
(key) => !(key in invalidKeys)
|
||||
(key) => !invalidKeys.some((t) => t === key)
|
||||
);
|
||||
|
||||
const db = Object.fromEntries(await this._db.context.readMulti(keys));
|
||||
|
||||
Reference in New Issue
Block a user