Skip to content

Commit

Permalink
Fixed last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyckoka committed Apr 30, 2024
1 parent b8c0fb0 commit 53d060b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class RealTimeUpdatesServiceImpl(val usersRepository: UsersRepository) : RealTim
val medicineNotificationUpdate =
realTimeUpdatePublishing.data as RealTimeUpdateMedicineNotificationPublishingData
usersRepository.findAll().forEach { user ->
if (user.favoritePharmacies.any { it.pharmacyId == medicineNotificationUpdate.pharmacyId }
&& user.medicinesToNotify.any { it.medicineId == medicineNotificationUpdate.medicineId }) {
if (user.favoritePharmacies.any { it.pharmacyId == medicineNotificationUpdate.pharmacy.pharmacyId }
&& user.medicinesToNotify.any { it.medicineId == medicineNotificationUpdate.medicineStock.medicine.medicineId }) {
userFlows[user.userId]?.tryEmit(realTimeUpdatePublishing)
}
}
Expand Down

0 comments on commit 53d060b

Please sign in to comment.