diff --git a/crates/diesel_models/src/business_profile.rs b/crates/diesel_models/src/business_profile.rs index c2c08a03b661..700104aaaecc 100644 --- a/crates/diesel_models/src/business_profile.rs +++ b/crates/diesel_models/src/business_profile.rs @@ -105,7 +105,7 @@ impl BusinessProfileUpdateInternal { pub fn apply_changeset(self, source: BusinessProfile) -> BusinessProfile { let Self { profile_name, - modified_at, + modified_at: _, return_url, enable_payment_response_hash, payment_response_hash_key, @@ -121,7 +121,7 @@ impl BusinessProfileUpdateInternal { } = self; BusinessProfile { profile_name: profile_name.unwrap_or(source.profile_name), - modified_at: modified_at.unwrap_or(source.modified_at), + modified_at: common_utils::date_time::now(), return_url, enable_payment_response_hash: enable_payment_response_hash .unwrap_or(source.enable_payment_response_hash), diff --git a/crates/diesel_models/src/capture.rs b/crates/diesel_models/src/capture.rs index e581935a6f2b..adc313ca3dde 100644 --- a/crates/diesel_models/src/capture.rs +++ b/crates/diesel_models/src/capture.rs @@ -88,7 +88,7 @@ impl CaptureUpdate { error_message, error_code, error_reason, - modified_at, + modified_at: _, connector_capture_id, connector_response_reference_id, } = self.into(); @@ -97,7 +97,7 @@ impl CaptureUpdate { error_message: error_message.or(source.error_message), error_code: error_code.or(source.error_code), error_reason: error_reason.or(source.error_reason), - modified_at: modified_at.unwrap_or(common_utils::date_time::now()), + modified_at: common_utils::date_time::now(), connector_capture_id: connector_capture_id.or(source.connector_capture_id), connector_response_reference_id: connector_response_reference_id .or(source.connector_response_reference_id),