mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
@@ -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 }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user