core: fix backup fail if item in null/undefined

This commit is contained in:
ammarahm-ed
2023-09-14 23:45:13 +05:00
parent ed5a75447f
commit 9ea4651fb0

View File

@@ -125,6 +125,7 @@ export default class Backup {
const items = await this._db.storage.readMulti(chunk);
items.forEach(([id, item]) => {
if (
!item ||
invalidKeys.includes(id) ||
(item.deleted && !item.type) ||
id.startsWith("_uk_")