Skip to content

Commit a61c2e3

Browse files
authored
fix(order): fixed notifications order (#147)
1 parent 65f78ab commit a61c2e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/websocket.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class WebSocketService
6363
const notifications = await this.notification.notifications({
6464
where: { recipientId: userSub },
6565
take: 50,
66+
orderBy: { timestamp: 'desc' }
6667
});
6768

6869
notifications.forEach((notification) => {

0 commit comments

Comments
 (0)