Skip to content

Commit

Permalink
async and process.exit the script when done
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed May 4, 2018
1 parent ac6908a commit 7688f83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/notify-subscribers-of-breach.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ async function notifySubscribersOfNewBreach(breachName) {
console.log(e);
}
}
return;
}

notifySubscribersOfNewBreach(breachName).then(()=>{return;});
(async () => {
await notifySubscribersOfNewBreach(breachName);
// eslint-disable-next-line no-process-exit
process.exit();
})();

0 comments on commit 7688f83

Please sign in to comment.