From e1d1bd49bbc6d2ff0fdda16e974e3fcfe1292617 Mon Sep 17 00:00:00 2001 From: An Date: Fri, 20 Dec 2024 11:24:05 +0700 Subject: [PATCH] fix update username schema --- server/api/dtos/user.dto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/dtos/user.dto.ts b/server/api/dtos/user.dto.ts index 670ba9c..a7b9dfb 100644 --- a/server/api/dtos/user.dto.ts +++ b/server/api/dtos/user.dto.ts @@ -51,7 +51,7 @@ export class UserDTO { private static baseSchema = createSelectSchema(tableSchemas.userTable, { email: z.string().email(), imageUrl: z.string().url(), - username: z.string().min(4).max(50), + username: usernameSchema, }).omit({ createdAt: true, updatedAt: true,