0
Fork 0
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:
Xiao Yijun 2021-11-19 16:04:40 +08:00
parent 3480d05366
commit a234f00269
No known key found for this signature in database
GPG key ID: 6F648FC1262DB420

View file

@ -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);
}