Skip to content

Commit 8321ec8

Browse files
committed
chore: DTO에서 빠진 description 추가
1 parent 9dd5f25 commit 8321ec8

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/user/dtos/my-profile.response.dto.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ export class MyProfileResponseDto {
99
@ApiProperty()
1010
email: string;
1111

12+
@ApiProperty()
13+
description?: string;
14+
1215
@ApiProperty()
1316
username: string;
1417

@@ -33,6 +36,7 @@ export class MyProfileResponseDto {
3336
static from(user: UserParam, cloudfrontUrl: string, treeCount: number): MyProfileResponseDto {
3437
return {
3538
id: user.id,
39+
description: user.description,
3640
email: user.email,
3741
treeCount,
3842
username: user.username,

src/user/dtos/profile.response.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export class ProfileResponseDto {
1212
@ApiProperty()
1313
nickname: string;
1414

15+
@ApiProperty()
16+
description: string;
17+
1518
@ApiProperty()
1619
socialProvider: SocialProvider;
1720

@@ -37,6 +40,7 @@ export class ProfileResponseDto {
3740
treeCount,
3841
username: user.username,
3942
nickname: user.nickname,
43+
description: user.description,
4044
socialProvider: user.socialProvider,
4145
isPrivate: user.isPrivate,
4246
createdAt: user.createdAt,

0 commit comments

Comments
 (0)