mirror of
				https://gitlab.com/comunic/comunicapiv2
				synced 2025-10-31 09:34:44 +00:00 
			
		
		
		
	Can delete a specific notification
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user