Skip to content

Commit

Permalink
fix update username schema
Browse files Browse the repository at this point in the history
  • Loading branch information
thaian1234 committed Dec 20, 2024
1 parent 26ae0f2 commit e1d1bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/dtos/user.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e1d1bd4

Please sign in to comment.