devex
devex copied to clipboard
Twitter bot issue: event trigger for tweets
Twitter bot should only tweet "New Opportunity" On Publish.
Today a tweet was sent as a "New Opportunity" On UnPublish.
https://twitter.com/gcdevex/status/1001570888284884992
Suggest that if we want to tweet on UnPublish, the tweet should read "This opportunity has been Cancelled" Or something like that. Instead of "New Opportunity"
For a future developer, the code for the automatic Tweets can be found in this function: https://github.com/canada-ca/devex/blob/master/modules/opportunities/server/controllers/opportunities.server.controller.js#L439
We miss you @markwooff !