Skip to content

Commit

Permalink
Merge pull request #264 from adhocteam/reconcile-script-exit
Browse files Browse the repository at this point in the history
Remove early exit from reconcile CLI script
  • Loading branch information
rahearn authored Mar 26, 2021
2 parents 2d20135 + f0dba5c commit 8d514e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/services/legacyreports.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,6 @@ export default async function reconcileLegacyReports() {
await Promise.all(updates);
} catch (err) {
logger.error(err);
throw err;
}
}
2 changes: 1 addition & 1 deletion src/tools/reconcileLegacyReports.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import reconcileLegacyReports from '../services/legacyreports';
import { auditLogger } from '../logger';

reconcileLegacyReports().then(process.exit(0)).catch((e) => {
reconcileLegacyReports().catch((e) => {
auditLogger.error(e);
process.exit(1);
});

0 comments on commit 8d514e2

Please sign in to comment.