Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
fix(notifications): scheduler did not filter new notifications properly
Browse files Browse the repository at this point in the history
  • Loading branch information
herteleo committed Apr 20, 2019
1 parent e74d6c8 commit 98e2913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/modules/Notifications.js
Expand Up @@ -23,10 +23,10 @@ export default {
},
getters: {
list: ({ dbUpdated }) => ({ newerThanTimestamp } = {}) => {
const items = db(dbUpdated).get('notifications');
let items = db(dbUpdated).get('notifications');

if (newerThanTimestamp) {
items.filter(item => item.timestamp > newerThanTimestamp);
items = items.filter(item => item.timestamp > newerThanTimestamp);
}

return items.orderBy('timestamp', 'desc').value();
Expand Down

0 comments on commit 98e2913

Please sign in to comment.