Skip to content

Commit

Permalink
fix(persist): separate join condition to on and where
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaerim1001 committed Sep 12, 2023
1 parent 4015b8e commit 68026b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public Optional<PersistResponseDto> findPersistResponseById(Long memberId) {
))
.from(member)
.leftJoin(member.team, team)
.on(member.memberId.eq(memberId).and(team.deletedAt.isNull()))
.on(team.deletedAt.isNull())
.where(member.memberId.eq(memberId))
.fetchOne();

if (findPersistData == null) {
Expand Down

0 comments on commit 68026b0

Please sign in to comment.