Skip to content

Commit 5722def

Browse files
authored
Hotfix/notification unit tests (#218)
* fix(notifications): unit tests * fix(notifications): unit tests * fix(notifications): unit tests * fix(notifications): unit tests * fix(notifications): unit tests * fix(notifications): unit tests
1 parent 183390b commit 5722def

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/notifications/notifications.service.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ export class NotificationsService implements OnModuleInit {
11461146
}
11471147
return null;
11481148
}
1149-
// Nest parent_tweet inside quote_tweet
1149+
11501150
const quote_tweet_with_parent = {
11511151
...this.enrichTweetWithStatus(quote_tweet),
11521152
parent_tweet: this.cleanTweet(parent_tweet),
@@ -1854,7 +1854,6 @@ export class NotificationsService implements OnModuleInit {
18541854
one_day_ago.setDate(one_day_ago.getDate() - 1);
18551855
const now = new Date();
18561856

1857-
// First, check for aggregated notifications
18581857
const user_document = await this.notificationModel.findOne({ user: user_id }).lean();
18591858

18601859
if (!user_document || !user_document.notifications) {

0 commit comments

Comments
 (0)