From a668e9b78b0024cd6ca219a2bf471762f991c85b Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 28 Oct 2023 17:23:14 -0400 Subject: [PATCH] fix q --- wrenchboard/src/shared_tool/payments.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrenchboard/src/shared_tool/payments.cc b/wrenchboard/src/shared_tool/payments.cc index 44e094a6..0e558361 100644 --- a/wrenchboard/src/shared_tool/payments.cc +++ b/wrenchboard/src/shared_tool/payments.cc @@ -194,7 +194,7 @@ long WrenchFamilyPayment( CVars in, CVars &out ) pgsql_exec("UPDATE members_payments SET flags = %lu WHERE id = %lu",x["flags"].Long(),payment_id ); pgsql_exec("UPDATE family_transfer SET pay_confirm = now() WHERE id = %lu ",confirmation, transfer_id ); CVars xrx; - load_db_record( xrx, "SELECT id AS transfer_id, * FROM family_transfer WHERE id = %lu ", payment_id ); + load_db_record( xrx, "SELECT id AS transfer_id, * FROM family_transfer WHERE id = %lu ", transfer_id ); return WrenchFamilyTransferCredit( xrx, out ); // let us try credit } else { out["status"] = "Unable to create payment"; @@ -228,7 +228,7 @@ long WrenchFamilyTransferCredit( CVars in, CVars &out ){ if (retDb2>0) { - long member_id = out["recipient"].Long(); // This is the recipient + long member_id = out["recipient"].Long(); // This is the recipient CVars vw; vw["currency"] = in["currency"]; vw["currency"].set_valid( true );