Skip to content

Commit

Permalink
add catch to tools/reconcileLegacyReports.js and reconcile:legacy:loc…
Browse files Browse the repository at this point in the history
…al command to package.json
  • Loading branch information
dcmcand committed Mar 24, 2021
1 parent d10fb23 commit 2951bc8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"import:goals": "node ./build/server/tools/importTTAPlanGoals.js",
"import:hses:local": "./node_modules/.bin/babel-node ./src/tools/importGrantGranteesCLI.js --skipdownload",
"import:hses": "node ./build/server/tools/importGrantGranteesCLI.js",
"reconcile:legacy": "./node_modules/.bin/babel-node ./src/tools/reconcileLegacyReports.js"
"reconcile:legacy": "./node_modules/.bin/babel-node ./build/server/tools/reconcileLegacyReports.js",
"reconcile:legacy:local": "./node_modules/.bin/babel-node ./src/tools/reconcileLegacyReports.js"
},
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion src/tools/reconcileLegacyReports.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import reconcileLegacyReports from '../services/legacyreports';
import { auditLogger } from '../logger';

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

0 comments on commit 2951bc8

Please sign in to comment.