Skip to content

Commit 659e7d1

Browse files
authored
Adjust last calculable date in WorkdayService to exclude today (#34)
1 parent 8e81f2c commit 659e7d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/moa/service/WorkdayService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class WorkdayService(
192192
return MonthlyEarningsResponse(0, defaultSalary, 0, standardMinutes)
193193
}
194194

195-
val lastCalculableDate = minOf(end, today)
195+
val lastCalculableDate = minOf(end, today.minusDays(1))
196196

197197
val savedSchedulesByDate = dailyWorkScheduleRepository
198198
.findAllByMemberIdAndDateBetween(memberId, start, lastCalculableDate)

0 commit comments

Comments
 (0)