backup cleaner: do not delete mail snapshot

This commit is contained in:
Girish Ramakrishnan
2023-01-31 10:58:51 +01:00
parent ebd970d3f4
commit 02b6aa93cb
+2 -2
View File
@@ -242,11 +242,11 @@ async function cleanupSnapshots(backupConfig) {
const info = safe.JSON.parse(contents);
if (!info) return;
delete info.box;
const progressCallback = (progress) => { debug(`cleanupSnapshots: ${progress.message}`); };
for (const appId of Object.keys(info)) {
if (appId === 'box' || appId === 'mail') continue;
const app = await apps.get(appId);
if (app) continue; // app is still installed