1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-06-02 19:35:53 +02:00

Add "mark as read" button

This commit is contained in:
Philipp Heckel 2022-05-07 19:16:08 -04:00
parent 344da326cd
commit 15ac5ed23b
5 changed files with 13 additions and 10 deletions

View file

@ -117,7 +117,7 @@ class SubscriptionManager {
async markNotificationRead(notificationId) {
await db.notifications
.where({id: notificationId, new: 1})
.where({id: notificationId})
.modify({new: 0});
}