diff --git a/apps/meteor/app/api/server/v1/chat.ts b/apps/meteor/app/api/server/v1/chat.ts index 5f08cb586222..89c9db8e2e30 100644 --- a/apps/meteor/app/api/server/v1/chat.ts +++ b/apps/meteor/app/api/server/v1/chat.ts @@ -100,7 +100,7 @@ API.v1.addRoute( ...(lastUpdate && { lastUpdate: new Date(lastUpdate) }), ...(next && { next }), ...(previous && { previous }), - ...(count && { count: parseInt(count, 10) }), + ...(count && { count }), }; const result = await Meteor.callAsync('messages/get', roomId, getMessagesQuery);