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

fix(core): fix status code of create new user api (#5735)

This commit is contained in:
wangsijie 2024-04-28 11:06:37 +08:00 committed by GitHub
parent c92acffb75
commit aec6c779b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -153,7 +153,7 @@ export default function adminUserBasicsRoutes<T extends ManagementApiRouter>(
profile: userProfileGuard,
}).partial(),
response: userProfileResponseGuard,
status: [200, 404, 422],
status: [200, 400, 404, 422],
}),
async (ctx, next) => {
const {