Skip to content

Commit

Permalink
cancels airtable sails that are missing in eventbrite
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanpharvey committed May 3, 2021
1 parent 915b9d7 commit d73a92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/airtable/lib/individual-sails.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ async function cancel(records, map) {
};
cancelRequest.push(sail);
}
if (cancelRequest.length > 0) { Slack.post(`cancel attendees report: ${JSON.stringify(cancelRequest)}`, process.env.slack_airtable_webhook_url); }
// if (cancelRequest.length > 0) request.update('By Individual Sails', cancelRequest).then(Slack.post(`cancelling attendees: ${JSON.stringify(cancelRequest)}`, process.env.slack_airtable_webhook_url)).catch(err => Slack.post(err, process.env.slack_airtable_webhook_url));
// if (cancelRequest.length > 0) { Slack.post(`cancel attendees report (NO UPDATES MADE): ${JSON.stringify(cancelRequest)}`, process.env.slack_airtable_webhook_url); }
if (cancelRequest.length > 0) request.update('By Individual Sails', cancelRequest).then(Slack.post(`cancelling attendees: ${JSON.stringify(cancelRequest)}`, process.env.slack_airtable_webhook_url)).catch(err => Slack.post(err, process.env.slack_airtable_webhook_url));
}

// function used during cleanup on 9/3/2020 - 9/4/2020
Expand Down

0 comments on commit d73a92d

Please sign in to comment.