Skip to content

Commit

Permalink
fix: tryCount 보정 (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin authored Jul 19, 2024
1 parent 777288e commit 3393ab5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ class CheckInSessionWithCode(
attendance.isAvailableCheckInRequest(thisWeekSession.startTime, input.now)

if (thisWeekSession.code != input.code) {
attendanceGateway.save(attendance.tryCountUp())
throw InvalidCheckInCodeException(attendance.getTryCount())
val updatedAttendance = attendance.tryCountUp()
attendanceGateway.save(updatedAttendance)
throw InvalidCheckInCodeException(updatedAttendance.getTryCount())
}

val expectAttendanceStatus = attendance.expectAttendanceStatus(thisWeekSession.startTime, input.now)
Expand Down

0 comments on commit 3393ab5

Please sign in to comment.