mirror of
https://github.com/logto-io/logto.git
synced 2025-02-03 21:48:55 -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),
|
query: query?.parse(ctx.request.query),
|
||||||
body: body?.parse(ctx.request.body),
|
body: body?.parse(ctx.request.body),
|
||||||
params: params?.parse(ctx.params),
|
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) {
|
} catch (error: unknown) {
|
||||||
throw new RequestError('guard.invalid_input', error);
|
throw new RequestError('guard.invalid_input', error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue