Skip to content

Commit

Permalink
fix: [ANDROAPP-6493] get next available period and not current one
Browse files Browse the repository at this point in the history
  • Loading branch information
xavimolloy committed Nov 12, 2024
1 parent b29c75e commit 7901e06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class CreateEventUseCaseRepository(
if (programStage?.periodType() == null) {
eventRepository.setEventDate(calendar.time ?: dateUtils.today)
} else {
val nextAvailablePeriod = dateUtils.getNextPeriod(programStage.periodType(), calendar.time ?: dateUtils.today, 0)
val nextAvailablePeriod = dateUtils.getNextPeriod(programStage.periodType(), calendar.time ?: dateUtils.today, 1)
eventRepository.setEventDate(nextAvailablePeriod)
}
}
Expand Down

0 comments on commit 7901e06

Please sign in to comment.