mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-26 19:44:57 +02:00
Fix backup-all script (#8255)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -2810,6 +2810,13 @@ export async function checkBackupIntegrity (ctx: MeasureContext, storage: Backup
|
||||
modified = true
|
||||
}
|
||||
}
|
||||
if (backupInfo.migrations == null) {
|
||||
backupInfo.migrations = {}
|
||||
}
|
||||
if (!backupInfo.migrations.zeroCheckSize) {
|
||||
backupInfo.migrations.zeroCheckSize = true
|
||||
modified = true
|
||||
}
|
||||
if (modified) {
|
||||
await storage.writeFile(infoFile, gzipSync(JSON.stringify(backupInfo, undefined, 2), { level: defaultLevel }))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user