refactor: use simple uuid instead of hyphens (#605)

This commit is contained in:
Narayan Bhat
2023-02-19 19:36:18 +05:30
committed by GitHub
parent 626e467e54
commit c467a47aed
2 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ impl PaymentCreate {
storage::PaymentAttemptNew {
payment_id: payment_id.to_string(),
merchant_id: merchant_id.to_string(),
attempt_id: Uuid::new_v4().to_string(),
attempt_id: Uuid::new_v4().simple().to_string(),
status,
amount: amount.into(),
currency,

View File

@ -274,7 +274,7 @@ impl PaymentMethodValidate {
storage::PaymentAttemptNew {
payment_id: payment_id.to_string(),
merchant_id: merchant_id.to_string(),
attempt_id: Uuid::new_v4().to_string(),
attempt_id: Uuid::new_v4().simple().to_string(),
status,
// Amount & Currency will be zero in this case
amount: 0,