Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hrithikesh026 committed Nov 29, 2023
1 parent b97895d commit 4fc40fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/diesel_models/src/business_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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),
Expand Down
4 changes: 2 additions & 2 deletions crates/diesel_models/src/capture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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),
Expand Down

0 comments on commit 4fc40fc

Please sign in to comment.