feat: add notification deletion functionality in API and EditorLayout

This commit is contained in:
SaelixCode
2026-02-27 12:47:16 -05:00
parent f4700ebfc9
commit 6bbd9b6484
3 changed files with 75 additions and 12 deletions
+10
View File
@@ -216,4 +216,14 @@ export class DatabaseService {
const stmt = this.db.prepare('UPDATE notification_history SET is_read = 1');
stmt.run();
}
public deleteNotification(id: number): void {
const stmt = this.db.prepare('DELETE FROM notification_history WHERE id = ?');
stmt.run(id);
}
public deleteAllNotifications(): void {
const stmt = this.db.prepare('DELETE FROM notification_history');
stmt.run();
}
}