Skip to content

Commit

Permalink
async errFunc
Browse files Browse the repository at this point in the history
  • Loading branch information
jorganisak committed Jul 18, 2020
1 parent 3835527 commit 5673b91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/workers/airtable-sync/paymentWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const updateReimbursementMessage = require("./actions/payments/updateReimburseme

const defaultInterval = 10000;

const errFunc = (error) => {
const errFunc = async (error) => {
sendErrorNotification(error);
};

Expand Down
4 changes: 2 additions & 2 deletions src/workers/airtable-sync/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const notifyManyc = require("./actions/notifyManyc");

const defaultInterval = 10000;

const errFunc = (error) => {
sendErrorNotification(error);
const errFunc = async (error) => {
await sendErrorNotification(error);
};

function startWorker(interval) {
Expand Down

0 comments on commit 5673b91

Please sign in to comment.