Skip to content

Commit

Permalink
fix: fix an error read team details
Browse files Browse the repository at this point in the history
  • Loading branch information
KAispread authored and KAispread committed Sep 13, 2023
1 parent 84cac34 commit bbaf57e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ public Optional<TeamInformationDto> 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);
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/static/swagger-ui/openapi3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1533,6 +1533,9 @@ components:
mbti:
type: string
description: 본인 MBTI
allowMarketing:
type: boolean
description: 마케팅 수신 동의 여부
v1-team-teamId1238987508:
type: object
properties:
Expand Down

0 comments on commit bbaf57e

Please sign in to comment.