Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: parsing error of cursor in pagination
  • Loading branch information
Raju-kadel-27 committed Aug 11, 2024
commit d2802a991716b824e69790fa8315a05e02cd0b28
6 changes: 6 additions & 0 deletions src/server/api/routes/share/getMany.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ export const getMany = withAuthApiV1
.withCursor({
limit: query.limit,
after: query.cursor,
getCursor({ id }) {
return id;
},
parseCursor(cursor) {
return { id: cursor };
},
});

const response: z.infer<typeof ResponseSchema> = {
Expand Down