From ec10d7670517a0e0208d5ce59462ed11223589fa Mon Sep 17 00:00:00 2001 From: anibilag Date: Sat, 22 Mar 2025 23:52:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=81=D0=BE=D1=85=D1=80=D0=B0=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20Bio=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D0=B5=D0=BB=D1=8F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/users/controllers/users.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/users/controllers/users.ts b/src/routes/users/controllers/users.ts index f62773d..a602888 100644 --- a/src/routes/users/controllers/users.ts +++ b/src/routes/users/controllers/users.ts @@ -31,7 +31,7 @@ export async function createUser(req: AuthRequest, res: Response): Promise return } - const { email, password, displayName, avatarUrl } = req.body; + const { email, password, displayName, bio, avatarUrl } = req.body; // Проверка существования пользователя const existingUser = await prisma.user.findUnique({ @@ -52,6 +52,7 @@ export async function createUser(req: AuthRequest, res: Response): Promise email, password: hashedPassword, displayName, + bio, avatarUrl, permissions: getDefaultPermissions() }, @@ -59,6 +60,7 @@ export async function createUser(req: AuthRequest, res: Response): Promise id: true, email: true, displayName: true, + bio: true, avatarUrl: true, permissions: true }