From 7be707ced81bc3a440a8f85fd67998ddc3645fbd Mon Sep 17 00:00:00 2001 From: Sebastian Pravda Date: Sun, 15 Jan 2023 13:46:21 +0100 Subject: [PATCH] refactor: do not overwrite personal id number --- core/src/database/mutation/candidate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/database/mutation/candidate.rs b/core/src/database/mutation/candidate.rs index 8dac3f3..0e61f3a 100644 --- a/core/src/database/mutation/candidate.rs +++ b/core/src/database/mutation/candidate.rs @@ -51,7 +51,7 @@ impl Mutation { candidate.citizenship = Set(enc_candidate.citizenship.map(|e| e.into())); candidate.email = Set(enc_candidate.email.map(|e| e.into())); candidate.sex = Set(enc_candidate.sex.map(|e| e.into())); - candidate.personal_identification_number = Set(enc_candidate.personal_id_number.map(|e| e.into()).unwrap_or_default()); // TODO: do not set this here, it is already set in the create_candidate mutation??? + // candidate.personal_identification_number = Set(enc_candidate.personal_id_number.map(|e| e.into()).unwrap_or_default()); // TODO: do not set this here, it is already set in the create_candidate mutation??? candidate.school_name = Set(enc_candidate.school_name.map(|e| e.into())); candidate.health_insurance = Set(enc_candidate.health_insurance.map(|e| e.into())); candidate.encrypted_by_id = Set(Some(encrypted_by_id));