From 5ca970bdee94c56d3d980d753a1c43a4f3f9945b Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Wed, 9 Oct 2024 14:46:18 -0400 Subject: [PATCH] Typo --- server/notifications.model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/notifications.model.js b/server/notifications.model.js index 8eed4c0d6..0a32bde8a 100644 --- a/server/notifications.model.js +++ b/server/notifications.model.js @@ -32,7 +32,7 @@ NotificationSchema.statics.addNotification = async function(data) { }; NotificationSchema.statics.deleteNotification = async function(dismissKey) { - if(!data.dismissKey) throw { message: 'Dismiss key is required!' }; + if(!dismissKey) throw { message: 'Dismiss key is required!' }; try { const deletedNotification = await this.findOneAndDelete({ dismissKey }).exec();