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 );