[ ] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[ ] PR title is ready for inclusion in changelog
Database Migrations
[ ] If your PR contains a database migation, it MUST be the latest in date order alphabetically
Currently when running any of the updateNotification resolvers with a name that doesn't match any existing notifications the following is returned: Cannot read properties of undefined (reading organization).
This adds a check to ensure the notification exists, prior to passing it to checkNotificationUpdatePermissions.
General Checklist
Database Migrations
Currently when running any of the
updateNotification
resolvers with aname
that doesn't match any existing notifications the following is returned:Cannot read properties of undefined (reading organization).
This adds a check to ensure the notification exists, prior to passing it to
checkNotificationUpdatePermissions
.