Skip to content

Commit

Permalink
Fixing short discord names
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Aug 17, 2023
1 parent cf0137f commit 982fe9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/api/openapi.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/api/src/useraccounts/schemas/useraccounts.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export class UserAccount {
@ApiProperty({
example: 'darth#6755',
type: 'string',
minLength: 4,
minLength: 2,
maxLength: 32,
})
@IsString()
@Prop({ required: true, minlength: 4, maxlength: 32 })
@Prop({ required: true, minlength: 2, maxlength: 32 })
name: string;

@ApiProperty({
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/users/schemas/users.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class User {
@Prop({
required: true,
unique: true,
minlength: 4,
minlength: 2,
maxlength: 50,
validate: {
validator: (username: string) =>
Expand Down

0 comments on commit 982fe9d

Please sign in to comment.