appwrite / templates

Templates for Appwrite Functions ⚡ī¸đŸŒŠī¸
https://appwrite.io
MIT License
104 stars 81 forks source link

fix bug 🐛 push notifications not working for node #282

Closed Snehasis4321 closed 1 month ago

Snehasis4321 commented 2 months ago

What does this PR do?

This PR fix the issue where push notification does not work correctly for push-notification-with-fcm template for node.

Test Plan

When trying to use push notification fcm cloud function from templates, I found that the function is not working correctly.

Then, I came across this bug 🐛.

On previous code:

after modifying all this it is now working fine.

Feature added :

added a feature to pass additional data payload within the message with the notification.

Have you read the Contributing Guidelines on issues?

Yes

Snehasis4321 commented 1 month ago

Done with all the requested changes. Can you please review my code? @loks0n.

Snehasis4321 commented 1 month ago

moved throwIfMissing to the top of the function.