Skip to content

Commit

Permalink
fix(order): fixed notifications order (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
igoromote authored Feb 21, 2024
1 parent 65f78ab commit a61c2e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/websocket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class WebSocketService
const notifications = await this.notification.notifications({
where: { recipientId: userSub },
take: 50,
orderBy: { timestamp: 'desc' }
});

notifications.forEach((notification) => {
Expand Down

0 comments on commit a61c2e3

Please sign in to comment.