Skip to content

Commit

Permalink
fix: tryCount 보정
Browse files Browse the repository at this point in the history
  • Loading branch information
ddingmin committed Jul 19, 2024
1 parent 777288e commit e527247
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 e527247

Please sign in to comment.