From bbaf57ee855c737376d5426f3cffa19b7280c44d Mon Sep 17 00:00:00 2001 From: KAispread Date: Wed, 13 Sep 2023 14:01:22 +0900 Subject: [PATCH] fix: fix an error read team details --- .../com/e2i/wemeet/domain/team/TeamCustomRepositoryImpl.java | 5 ++++- src/main/resources/static/swagger-ui/openapi3.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/e2i/wemeet/domain/team/TeamCustomRepositoryImpl.java b/src/main/java/com/e2i/wemeet/domain/team/TeamCustomRepositoryImpl.java index e0478324..2cc4dd7e 100644 --- a/src/main/java/com/e2i/wemeet/domain/team/TeamCustomRepositoryImpl.java +++ b/src/main/java/com/e2i/wemeet/domain/team/TeamCustomRepositoryImpl.java @@ -99,7 +99,10 @@ public Optional findTeamInformationByTeamId(final Long membe myTeam.teamId )) .from(team) - .leftJoin(myTeam).on(myTeam.teamLeader.memberId.eq(memberLeaderId)) + .leftJoin(myTeam).on( + myTeam.teamLeader.memberId.eq(memberLeaderId), + myTeam.deletedAt.isNull() + ) .where(team.teamId.eq(teamId)) .fetchOne()) .orElseThrow(TeamNotFoundException::new); diff --git a/src/main/resources/static/swagger-ui/openapi3.yaml b/src/main/resources/static/swagger-ui/openapi3.yaml index 457e375b..8cc1f1e6 100644 --- a/src/main/resources/static/swagger-ui/openapi3.yaml +++ b/src/main/resources/static/swagger-ui/openapi3.yaml @@ -129,7 +129,7 @@ paths: 회원가입: value: "{\"nickname\":\"카이\",\"gender\":\"MAN\",\"phoneNumber\":\"\ +821011112222\",\"collegeInfo\":{\"collegeCode\":\"CE-081\",\"collegeType\"\ - :\"SOCIAL\",\"admissionYear\":\"17\"},\"mbti\":\"INFJ\"}" + :\"SOCIAL\",\"admissionYear\":\"17\"},\"mbti\":\"INFJ\", \"allowMarketing\":\"true\"}" responses: "200": description: "200" @@ -1533,6 +1533,9 @@ components: mbti: type: string description: 본인 MBTI + allowMarketing: + type: boolean + description: 마케팅 수신 동의 여부 v1-team-teamId1238987508: type: object properties: