Skip to content

Commit

Permalink
♻️ status-validation 수정
Browse files Browse the repository at this point in the history
모집 중, 모집 마감, 종료로 한글만 받기 때문에 대문자가 필요 없습니다.
  • Loading branch information
ldhbenecia committed Nov 22, 2023
1 parent ec68fa2 commit 6d874e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/backend/src/mogaco/pipes/mogaco-status-validation.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ export class MogacoStatusValidationPipe implements PipeTransform {
readonly StatusOptions = [MogacoStatus.RECRUITING, MogacoStatus.CLOSED, MogacoStatus.COMPLETED];

transform(value: any) {
value = value.toUpperCase();

if (!this.isStatusValid(value)) {
throw new BadRequestException(`${value} isn't in the status options`);
}
Expand Down

0 comments on commit 6d874e7

Please sign in to comment.