Skip to content

Commit 7e519c2

Browse files
committed
fix: await params
1 parent 999861b commit 7e519c2

File tree

1 file changed

+1
-1
lines changed
  • packages/next-rest-framework/src/app-router

1 file changed

+1
-1
lines changed

packages/next-rest-framework/src/app-router/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const route = <T extends Record<string, RouteOperationDefinition>>(
253253
if (paramsSchema) {
254254
const { valid, errors, data } = validateSchema({
255255
schema: paramsSchema,
256-
obj: context.params
256+
obj: await context.params
257257
});
258258

259259
if (!valid) {

0 commit comments

Comments
 (0)