Skip to content

Commit

Permalink
[BE] HOTFIX : 공유 사물함 대여 시 공유 코드 3번 틀린 경우, redis userSession 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
chyo1 committed Jul 16, 2024
1 parent 1743e50 commit ebcedb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ public void cancelShareCabinetLent(Long userId, Long cabinetId) {
Cabinet cabinet = cabinetQueryService.getCabinetForUpdate(cabinetId);
cabinetCommandService.changeStatus(cabinet, CabinetStatus.AVAILABLE);
}
lentRedisService.clearCabinetSession(cabinetId);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ public void deleteUserInCabinet(Long cabinetId, Long userId) {
lentRedis.deleteUserInCabinet(cabinetIdString, userIdString);
if (lentRedis.countUserInCabinet(cabinetIdString) == 0) {
lentRedis.deleteShadowKey(cabinetIdString);
clearCabinetSession(cabinetId);

}
}

Expand Down

0 comments on commit ebcedb3

Please sign in to comment.