mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-08 17:18:48 +00:00
qfix
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
54be660e9a
commit
32550b6f9d
@ -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 }))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user