mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-25 06:49:23 +00:00
Can delete a specific notification
This commit is contained in:
parent
c67112d926
commit
3bf3f18710
@ -245,7 +245,9 @@ export class NotificationsHelper {
|
|||||||
public static async Delete(n: Notif) {
|
public static async Delete(n: Notif) {
|
||||||
// Delete a specific notification
|
// Delete a specific notification
|
||||||
if(n.hasId)
|
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
|
// Delete wider range of notifications
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user