Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev 2025-03-17 14:44:33 +07:00
parent 54be660e9a
commit 32550b6f9d
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -779,6 +779,9 @@ export async function backup (
if (await storage.exists(infoFile)) {
backupInfo = JSON.parse(gunzipSync(new Uint8Array(await storage.loadFile(infoFile))).toString())
}
if (backupInfo.migrations == null) {
backupInfo.migrations = {}
}
backupInfo.migrations.zeroCheckSize = true
await storage.writeFile(infoFile, gzipSync(JSON.stringify(backupInfo, undefined, 2), { level: defaultLevel }))
}