itisnajim / strapi-plugin-fcm

Send FCM notifications from your Strapi app.
MIT License
22 stars 11 forks source link

Fix error on server start when config doesn't exist yet #13

Closed a1tem closed 1 year ago

a1tem commented 1 year ago

The purpose of this pull request is to fix this error which occurs on the server start

TypeError: Cannot destructure property 'serviceAccount' of '(intermediate value)' as it is null. at Object.initialize (node_modules/strapi-plugin-fcm/util/fcm.js:67:17)