Ermögliche Schwangerschaften während der Verlobung
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Has been cancelled
Some checks failed
Deploy yourpart (blue-green) / deploy (push) Has been cancelled
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user