mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 19:02:38 +00:00
Typo
This commit is contained in:
@@ -32,7 +32,7 @@ NotificationSchema.statics.addNotification = async function(data) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
NotificationSchema.statics.deleteNotification = async function(dismissKey) {
|
NotificationSchema.statics.deleteNotification = async function(dismissKey) {
|
||||||
if(!data.dismissKey) throw { message: 'Dismiss key is required!' };
|
if(!dismissKey) throw { message: 'Dismiss key is required!' };
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const deletedNotification = await this.findOneAndDelete({ dismissKey }).exec();
|
const deletedNotification = await this.findOneAndDelete({ dismissKey }).exec();
|
||||||
|
|||||||
Reference in New Issue
Block a user