mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-18 03:01:09 +01:00
🐛 Fix pagination on register token page
This commit is contained in:
@@ -26,12 +26,15 @@ export const inviteRouter = createTRPCRouter({
|
||||
nextCursor = nextItem!.id;
|
||||
}
|
||||
|
||||
const countRegistrationTokens = await ctx.prisma.registrationToken.count();
|
||||
|
||||
return {
|
||||
registrationTokens: registrationTokens.map((token) => ({
|
||||
id: token.id,
|
||||
expires: token.expires,
|
||||
})),
|
||||
nextCursor,
|
||||
countPages: Math.ceil(countRegistrationTokens / limit)
|
||||
};
|
||||
}),
|
||||
createRegistrationToken: publicProcedure
|
||||
|
||||
Reference in New Issue
Block a user