mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
fix(database): modified_at updated for every state change for Payment Attempts (#5312)
Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -746,8 +746,10 @@ impl DataModelExt for PayoutsNew {
|
||||
return_url: self.return_url,
|
||||
entity_type: self.entity_type,
|
||||
metadata: self.metadata,
|
||||
created_at: self.created_at,
|
||||
last_modified_at: self.last_modified_at,
|
||||
created_at: self.created_at.unwrap_or_else(common_utils::date_time::now),
|
||||
last_modified_at: self
|
||||
.last_modified_at
|
||||
.unwrap_or_else(common_utils::date_time::now),
|
||||
profile_id: self.profile_id,
|
||||
status: self.status,
|
||||
attempt_count: self.attempt_count,
|
||||
@ -775,8 +777,8 @@ impl DataModelExt for PayoutsNew {
|
||||
return_url: storage_model.return_url,
|
||||
entity_type: storage_model.entity_type,
|
||||
metadata: storage_model.metadata,
|
||||
created_at: storage_model.created_at,
|
||||
last_modified_at: storage_model.last_modified_at,
|
||||
created_at: Some(storage_model.created_at),
|
||||
last_modified_at: Some(storage_model.last_modified_at),
|
||||
profile_id: storage_model.profile_id,
|
||||
status: storage_model.status,
|
||||
attempt_count: storage_model.attempt_count,
|
||||
|
||||
Reference in New Issue
Block a user