Fix SQL group by and undefined function errors in admin APIs

This commit is contained in:
Hamza-Ayed
2026-06-30 21:17:06 +03:00
parent 1ae8acad7a
commit fdd09d8f35
6 changed files with 7 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ if ($role !== 'admin' && $role !== 'super_admin') {
}
try {
$countryCode = resolveAdminCountry(filterRequest('country_code'), $role, $admin_country ?? null);
$countryCode = filterRequest('country_code');
$proposedSpeedPrice = (float)filterRequest('speed_price');
if (!$countryCode || $proposedSpeedPrice <= 0) {