NOTICKET: Fix MedicationDao ReadAll

This commit is contained in:
Dominik Säume 2024-05-17 09:18:40 +02:00 committed by Ole Kück
parent dd369a5478
commit a74b5863f9

View file

@ -106,8 +106,6 @@ public class MedicationDao implements Dao<Medication> {
result.getInt(6) result.getInt(6)
); );
medications.add(medication); medications.add(medication);
lastMedicationId = currentMedicationId;
continue;
} }
List<Ingredient> ingredients = ingredientMap.computeIfAbsent(currentMedicationId, k -> new ArrayList<>()); List<Ingredient> ingredients = ingredientMap.computeIfAbsent(currentMedicationId, k -> new ArrayList<>());
ingredients.add(new Ingredient(result.getString(7))); ingredients.add(new Ingredient(result.getString(7)));