Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

fix : sort 에러 해결 #199

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/rule/dto/update-rule.dto.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { IsNotEmpty, IsNumber, IsString, IsArray, ValidateNested } from 'class-validator';
import {IsNotEmpty, IsNumber, IsString, IsArray, ValidateNested, IsOptional} from 'class-validator';
import { Type } from 'class-transformer';

export class UpdateRulePairDto {
@IsOptional()
@IsNumber()
id: number;

Expand Down
6 changes: 3 additions & 3 deletions src/rule/rule.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class RuleController {
@Query() cursorPageOptionsDto: CursorPageOptionsDto
): Promise<ResponseDto<any>> {
try {
const result = await this.ruleService.getComment(cursorPageOptionsDto, ruleId);
const result = await this.ruleService.getComment(cursorPageOptionsDto, ruleId, req.user.id);

return new ResponseDto(
ResponseCode.GET_COMMENT_DETAIL_SUCCESS,
Expand Down Expand Up @@ -80,11 +80,11 @@ export class RuleController {
"초대할 메이트 검색 결과 리스트 불러오기 성공",
result
);
} catch (error) {
} catch (e) {
return new ResponseDto(
ResponseCode.GET_SEARCH_RESULT_FAIL,
false,
"초대할 메이트 검색 결과 리스트 불러오기 실패",
e.message,
null
);
}
Expand Down
Loading