From aec6c779b2e4f4ccf535a35f9b685ef5bcbd1880 Mon Sep 17 00:00:00 2001 From: wangsijie Date: Sun, 28 Apr 2024 11:06:37 +0800 Subject: [PATCH] fix(core): fix status code of create new user api (#5735) --- packages/core/src/routes/admin-user/basics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/routes/admin-user/basics.ts b/packages/core/src/routes/admin-user/basics.ts index 7c7065a28..710bbfe14 100644 --- a/packages/core/src/routes/admin-user/basics.ts +++ b/packages/core/src/routes/admin-user/basics.ts @@ -153,7 +153,7 @@ export default function adminUserBasicsRoutes( profile: userProfileGuard, }).partial(), response: userProfileResponseGuard, - status: [200, 404, 422], + status: [200, 400, 404, 422], }), async (ctx, next) => { const {