wallet found

This commit is contained in:
CHIEFSOFT\ameye
2024-06-23 10:11:12 -04:00
parent b835ee4fbc
commit 87e4861733
+1 -1
View File
@@ -2416,7 +2416,7 @@ long WrenchTestWalletCapability(CVars in, CVars &out){
}
else{
ret = load_db_record(out, "SELECT id AS wallet_id, action_type FROM currency WHERE country ='%s'", in["country"].c_str());
if ( ret > 0 ){
if ( ret >= 0 && out["wallet_id"].Long() > 0 ){
out["wallet_available_status"] = "WALLET_AVAILABLE";
out["wallet_country_status"] = "USER_COUNTRY_WALLET_ENABLED";
out["wallet_action_type"] = out["action_type"];