We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 901954d commit 32e6ecbCopy full SHA for 32e6ecb
1 file changed
src/whatsapp/repository/message.repository.ts
@@ -118,6 +118,7 @@ export class MessageRepository extends Repository {
118
119
return await this.messageModel
120
.find({ ...query.where })
121
+ .select(query.select || {})
122
.sort({ messageTimestamp: -1 })
123
.limit(query?.limit ?? 0);
124
}
0 commit comments