0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(core): add the missing status code (#6879)

add the missing status code
This commit is contained in:
simeng-li 2024-12-15 20:12:07 +08:00 committed by GitHub
parent f1f9dab8b7
commit 8fc5e250e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,7 +211,7 @@ export default function interactionRoutes<T extends AnonymousRouter>(
`${interactionPrefix}/profile`,
koaGuard({
body: profileGuard,
status: [204, 400, 404],
status: [204, 400, 404, 422],
}),
koaInteractionSie(queries),
async (ctx, next) => {