Skip to content

Commit

Permalink
#38: fix restore util crash on generic reports
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit-s96 committed Aug 14, 2024
1 parent a024e8a commit da20f5d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/restore-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ const restore = async (options = {}) => {
)
);
const success = await restoreBackedUpReport({ serverUrl: url, report: metadataReport });
if (!(result in BACKUP_STATS)) {
BACKUP_STATS[result] = [];
}
if (success) BACKUP_STATS[result].push(id);
else BACKUP_STATS.failed.push(id);
}
Expand Down

0 comments on commit da20f5d

Please sign in to comment.