diff --git a/package.json b/package.json index ccec20d3..ab70df85 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hawk.api", - "version": "1.1.32", + "version": "1.1.33", "main": "index.ts", "license": "UNLICENSED", "scripts": { @@ -44,8 +44,6 @@ "@types/debug": "^4.1.5", "@types/escape-html": "^1.0.0", "@types/graphql-upload": "^8.0.11", - "@types/lodash.clonedeep": "^4.5.9", - "@types/lodash.mergewith": "^4.6.9", "@types/jsonwebtoken": "^8.3.5", "@types/lodash.clonedeep": "^4.5.9", "@types/lodash.mergewith": "^4.6.9", diff --git a/src/models/eventsFactory.js b/src/models/eventsFactory.js index 1bac1551..518a290d 100644 --- a/src/models/eventsFactory.js +++ b/src/models/eventsFactory.js @@ -379,7 +379,7 @@ class EventsFactory extends Factory { */ async getUnreadCount(lastVisit) { const query = { - 'payload.timestamp': { + timestamp: { $gt: lastVisit, }, };