fix: call paginationSchema as a function

This commit is contained in:
P. Reis 2025-03-21 10:49:58 -03:00
parent 0b8b9e726a
commit 1360484ae9

View file

@ -273,7 +273,7 @@ route.get('/wallet', userMiddleware({ enc: 'nip44' }), swapNutzapsMiddleware, as
/** Gets a history of transactions. */
route.get('/transactions', userMiddleware({ enc: 'nip44' }), async (c) => {
const { relay, user, signal } = c.var;
const { limit, since, until } = paginationSchema.parse(c.req.query());
const { limit, since, until } = paginationSchema().parse(c.req.query());
const pubkey = await user.signer.getPublicKey();