mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
chore(core): fix comment mistake
This commit is contained in:
parent
3480d05366
commit
a234f00269
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export default function koaGuard<
|
|||
query: query?.parse(ctx.request.query),
|
||||
body: body?.parse(ctx.request.body),
|
||||
params: params?.parse(ctx.params),
|
||||
} as Guarded<GuardQueryT, GuardBodyT, GuardParametersT>; // Have to do t His since it's too complicated for TS
|
||||
} as Guarded<GuardQueryT, GuardBodyT, GuardParametersT>; // Have to do this since it's too complicated for TS
|
||||
} catch (error: unknown) {
|
||||
throw new RequestError('guard.invalid_input', error);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue