Skip to content

Commit

Permalink
fix last message of joined channels
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilaboz committed Nov 15, 2023
1 parent 17ee645 commit 5f399b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion api/src/modules/chat/channels.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ export class ChannelsService {
include: {
channel: {
include: {
messages: true,
messages: {
orderBy: {
id: 'desc',
},
take: 1,
},
},
},
},
Expand Down

0 comments on commit 5f399b1

Please sign in to comment.