Skip to content

Commit 9a1faca

Browse files
authored
Merge pull request #525 from codex-team/fix-project-unread-count
fix(): fix query for unread count
2 parents 0eced98 + 9115d04 commit 9a1faca

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hawk.api",
3-
"version": "1.1.32",
3+
"version": "1.1.33",
44
"main": "index.ts",
55
"license": "UNLICENSED",
66
"scripts": {
@@ -44,8 +44,6 @@
4444
"@types/debug": "^4.1.5",
4545
"@types/escape-html": "^1.0.0",
4646
"@types/graphql-upload": "^8.0.11",
47-
"@types/lodash.clonedeep": "^4.5.9",
48-
"@types/lodash.mergewith": "^4.6.9",
4947
"@types/jsonwebtoken": "^8.3.5",
5048
"@types/lodash.clonedeep": "^4.5.9",
5149
"@types/lodash.mergewith": "^4.6.9",

src/models/eventsFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ class EventsFactory extends Factory {
379379
*/
380380
async getUnreadCount(lastVisit) {
381381
const query = {
382-
'payload.timestamp': {
382+
timestamp: {
383383
$gt: lastVisit,
384384
},
385385
};

0 commit comments

Comments
 (0)