mirror of
https://github.com/InsanusMokrassar/PsychomatrixBase.git
synced 2025-09-15 13:19:37 +00:00
fix of HistoryDatesRepositoryImpl logic
This commit is contained in:
@@ -20,8 +20,11 @@ abstract class HistoryDatesRepositoryImpl(
|
||||
calculatePsychomatrixByDateUseCase.openPsychomatrixCreatedSubscription().subscribe {
|
||||
it.date.also {
|
||||
date ->
|
||||
onDateCalculated(date)
|
||||
dateAddedBroadcast.send(date)
|
||||
date.withTime(0, 0, 0, 0).also {
|
||||
dateWithoutTime ->
|
||||
onDateCalculated(dateWithoutTime)
|
||||
dateAddedBroadcast.send(dateWithoutTime)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user