Ermögliche Schwangerschaften während der Verlobung
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Has been cancelled

This commit is contained in:
Torsten Schulz (local)
2026-11-04 15:01:59 +01:00
parent 4fbb4d371c
commit 94074c8129
2 changed files with 27 additions and 14 deletions

View File

@@ -1062,11 +1062,16 @@ impl FalukantFamilyWorker {
continue;
}
let reason = if row.get("relationship_type").map(String::as_str) == Some("engaged") {
"engaged_pregnancy"
} else {
"lover_pregnancy"
};
if let Some(uid) = father_uid {
self.publish_falukant_update_family_and_status(uid, "lover_pregnancy");
self.publish_falukant_update_family_and_status(uid, reason);
}
if let Some(uid) = mother_uid {
self.publish_falukant_update_family_and_status(uid, "lover_pregnancy");
self.publish_falukant_update_family_and_status(uid, reason);
}
}