Open pizzaisdavid opened 1 week ago
When you fix this, it would be good to add a corresponding unit test, you can use this as a base: https://github.com/ONEARMY/community-platform/blob/master/functions/src/Integrations/firebase-discord.test.ts
I can accidently confirm this problem. This is a draft update on a draft research article!
@benfurber Good catch, I have updated the description.
Someone please consider adding the label Good First Issue. :)
To Reproduce Steps to reproduce the behaviour:
Link to emulator: https://github.com/ONEARMY/community-platform/blob/master/packages/documentation/docs/Backend%20Development/firebase-emulator.md#commands
Expected behaviour The webhook should not be triggered.
Also, as Ben has pointed out in the comments, that if the article is a draft, it is currently also possible to trigger the webhook, which is bad mm'kay.