fix(payouts): persist status updates in payouts table (#4280)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Kashif
2024-04-04 19:13:24 +05:30
committed by GitHub
parent 622aac3015
commit 02ffe7e480
11 changed files with 232 additions and 61 deletions

View File

@ -288,7 +288,7 @@ pub async fn save_payout_data_to_locker(
// Store card_reference in payouts table
let db = &*state.store;
let updated_payout = storage::PayoutsUpdate::PayoutMethodIdUpdate {
payout_method_id: Some(stored_resp.card_reference.to_owned()),
payout_method_id: stored_resp.card_reference.to_owned(),
};
db.update_payout(
&payout_data.payouts,