Skip to content

Commit 0deb0cb

Browse files
committed
fix: Changed count schema to number
1 parent 2662b80 commit 0deb0cb

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • apps/meteor/app/api/server/v1

apps/meteor/app/api/server/v1/chat.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const ChatSyncMessagesSchema = {
250250
nullable: true,
251251
},
252252
count: {
253-
type: 'string',
253+
type: 'number',
254254
nullable: true,
255255
},
256256
next: {
@@ -634,11 +634,11 @@ const chatEndpoints = API.v1
634634
}
635635

636636
const getMessagesQuery = {
637-
...(lastUpdate ? { lastUpdate: new Date(lastUpdate) } : {}),
638-
...(next ? { next } : {}),
639-
...(previous ? { previous } : {}),
640-
...(count ? { count } : {}),
641-
...(type ? { type } : {}),
637+
...(lastUpdate && { lastUpdate: new Date(lastUpdate) }),
638+
...(next && { next }),
639+
...(previous && { previous }),
640+
...(count && { count }),
641+
...(type && { type }),
642642
};
643643

644644
const result = await getMessageHistory(roomId, this.userId, getMessagesQuery);

0 commit comments

Comments
 (0)