Skip to content

Commit

Permalink
fix: validation (#130)
Browse files Browse the repository at this point in the history
- 조건문 거꾸로봤었네여.. ㅎㅎ
  • Loading branch information
koreanddinghwan authored Oct 4, 2023
1 parent e4ee421 commit aa5e4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/mentorProfile/mentorProfile.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class MentorProfileController {
if (data.description === null || data.shortDescription === null)
throw new BadRequestException('Description과 ShortDescription은 null이 될 수 없습니다');

if (data.isHide === true) {
if (data.isHide === false) {
if (!data.socialLink || data.socialLink == null)
throw new BadRequestException('멘토 프로필 활성화를 위해선 소셜 링크를 입력해야 합니다');
if (data.hashtags?.length === 0 || data.categories?.length === 0)
Expand Down

0 comments on commit aa5e4aa

Please sign in to comment.