NOTICKET: Fix MedicationDao ReadAll

This commit is contained in:
Dominik Säume 2024-05-17 09:18:40 +02:00
parent e881adcc04
commit b76f172079
Signed by: SZUT-Dominik
GPG key ID: DACB4B96EB59ABA8

View file

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