mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-06-02 19:35:53 +02:00
Home page; "all notifications"
This commit is contained in:
parent
1d2f3f72e4
commit
5bed926323
5 changed files with 73 additions and 46 deletions
web/src/app
|
@ -38,6 +38,14 @@ class SubscriptionManager {
|
|||
async getNotifications(subscriptionId) {
|
||||
return db.notifications
|
||||
.where({ subscriptionId: subscriptionId })
|
||||
.reverse()
|
||||
.sortBy("time"); // Inefficient, but there is no other way (see docs)
|
||||
}
|
||||
|
||||
async getAllNotifications() {
|
||||
return db.notifications
|
||||
.orderBy("time") // Efficient, see docs
|
||||
.reverse()
|
||||
.toArray();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue