archives: add eventlog

This commit is contained in:
Girish Ramakrishnan
2024-12-10 11:01:10 +01:00
parent 490840b71d
commit f973536f7f
9 changed files with 34 additions and 13 deletions
+1 -1
View File
@@ -2496,8 +2496,8 @@ async function archive(app, backupId, auditSource) {
if (result[0].id !== backupId) throw new BoxError(BoxError.BAD_STATE, 'Latest backup id has changed');
const icons = await getIcons(app.id);
await archives.add(backupId, { icon: icons.icon, appStoreIcon: icons.appStoreIcon, appConfig: app }, auditSource);
const { taskId } = await uninstall(app, auditSource);
await archives.add(backupId, { icon: icons.icon, appStoreIcon: icons.appStoreIcon, appConfig: app });
return { taskId };
}