payments bug fix

This commit is contained in:
2025-06-12 15:38:15 +05:30
parent e97e8c57ed
commit 7c60ef5ca0

View File

@@ -24,7 +24,7 @@ export async function paymentRoutes(fastify: FastifyInstance) {
"/",
{
schema: {
params: $payment("pageQueryParams"),
querystring: $payment("pageQueryParams"),
},
config: { requiredClaims: ["payment:read"] },
preHandler: [fastify.authorize],
@@ -36,7 +36,7 @@ export async function paymentRoutes(fastify: FastifyInstance) {
"/search",
{
schema: {
params: $payment("pageQueryParams"),
querystring: $payment("pageQueryParams"),
},
config: { requiredClaims: ["payment:read"] },
preHandler: [fastify.authorize],