mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(payment_methods): Add default payment method column in customers table and last used column in payment_methods table (#3790)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -43,7 +43,11 @@ pub async fn rust_locker_migration(
|
||||
|
||||
for customer in domain_customers {
|
||||
let result = db
|
||||
.find_payment_method_by_customer_id_merchant_id_list(&customer.customer_id, merchant_id)
|
||||
.find_payment_method_by_customer_id_merchant_id_list(
|
||||
&customer.customer_id,
|
||||
merchant_id,
|
||||
None,
|
||||
)
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.and_then(|pm| {
|
||||
call_to_locker(
|
||||
|
||||
Reference in New Issue
Block a user