Skip to content

Commit

Permalink
Merge branch 'main' of github.com:my-trash-bin/ft_transcendence
Browse files Browse the repository at this point in the history
  • Loading branch information
christie26 committed Dec 16, 2023
2 parents 58cd65c + 989e93c commit 9ce760a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions project/backend/src/channel/dto/message-pagination.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export class MessagePaginationDto {
@ApiProperty({
description: '페이지당 메시지 수',
required: false,
default: 10,
example: 10,
})
@Type(() => Number)
@IsOptional()
@IsInt()
@Min(1)
pageSize: number = 10;
pageSize?: number;
}
3 changes: 2 additions & 1 deletion project/backend/src/users/dto/update-user.dto.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsOptional, IsString, Matches } from 'class-validator';
import { IsOptional, IsString, Matches, MaxLength } from 'class-validator';

export class UpdateUserDto {
@ApiPropertyOptional({
Expand All @@ -25,5 +25,6 @@ export class UpdateUserDto {
@ApiPropertyOptional({ description: '프로필 상태 메세지', required: false })
@IsOptional()
@IsString()
@MaxLength(100)
statusMessage?: string;
}

0 comments on commit 9ce760a

Please sign in to comment.