Skip to content

Commit 206ac7d

Browse files
committed
modify: 타입 반영 놓친 부분 수정
1 parent 5f0330e commit 206ac7d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/services/leaderboard.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class LeaderboardService {
7474
interface RawUserResult {
7575
id: string;
7676
email: string | null;
77-
username: string | null;
77+
username: string;
7878
total_views: string;
7979
total_likes: string;
8080
total_posts: string;

src/types/dto/responses/leaderboardResponse.type.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { BaseResponseDto } from '@/types/dto/responses/baseResponse.type';
1616
* nullable: true
1717
* username:
1818
* type: string
19-
* nullable: true
2019
* description: 사용자 이름
2120
* totalViews:
2221
* type: integer
@@ -40,7 +39,7 @@ import { BaseResponseDto } from '@/types/dto/responses/baseResponse.type';
4039
interface LeaderboardUser {
4140
id: string;
4241
email: string | null;
43-
username: string | null;
42+
username: string;
4443
totalViews: number;
4544
totalLikes: number;
4645
totalPosts: number;

0 commit comments

Comments
 (0)