diff --git a/src/helpers/NotificationsHelper.ts b/src/helpers/NotificationsHelper.ts index 86f59c3..8c243cd 100644 --- a/src/helpers/NotificationsHelper.ts +++ b/src/helpers/NotificationsHelper.ts @@ -245,7 +245,9 @@ export class NotificationsHelper { public static async Delete(n: Notif) { // Delete a specific notification if(n.hasId) - throw new Error("Please implement notification deletion with known ID!"); + await DatabaseHelper.DeleteRows(NOTIFICATIONS_TABLE, { + id: n.id + }) // Delete wider range of notifications else