Skip to content

Commit

Permalink
feat: add cursor pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogarim committed Sep 13, 2024
1 parent 624f49b commit bf9a0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/api/server/v1/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf9a0d4

Please sign in to comment.