Skip to content

Commit

Permalink
fix(router): use default value for the routing algorithm column durin…
Browse files Browse the repository at this point in the history
…g business profile creation (#2791)
  • Loading branch information
vspecky authored Nov 30, 2023
1 parent 663754d commit b1fe76a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/router/src/types/api/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,10 @@ impl ForeignTryFrom<(domain::MerchantAccount, BusinessProfileCreate)>
.unwrap_or(merchant_account.redirect_to_merchant_with_http_post),
webhook_details: webhook_details.or(merchant_account.webhook_details),
metadata: request.metadata,
routing_algorithm: request
.routing_algorithm
.or(merchant_account.routing_algorithm),
routing_algorithm: Some(serde_json::json!({
"algorithm_id": null,
"timestamp": 0
})),
intent_fulfillment_time: request
.intent_fulfillment_time
.map(i64::from)
Expand Down

0 comments on commit b1fe76a

Please sign in to comment.