fix: add currency code to countries

This commit is contained in:
Djery-Tom 2023-09-26 16:07:26 +01:00
parent eeb1db5aec
commit af29814cb0
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class HelperController extends Controller
public function countries()
{
$countries = DB::select('SELECT id , name , code_dial , code_country FROM countries_currencies WHERE id IN (
$countries = DB::select('SELECT id , name , code_dial , code_country, currency_code FROM countries_currencies WHERE id IN (
SELECT distinct c.id FROM networks n INNER JOIN countries_currencies c ON n.country_id=c.id INNER JOIN configWallet cw ON cw.id_network = n.id WHERE status = 1
);');
return $this->successResponse($countries);