Remove pagination while search agents

This commit is contained in:
Djery-Tom 2022-04-12 11:01:21 +01:00
parent d9c85a7814
commit 6b67ab9dc2
1 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ class HelperController extends Controller
$id = $request->input('id');
$dial_code = $request->input('dial_code');
$perPage = current(DB::select("SELECT valeur_int FROM adminConfig WHERE cle = 'pas_chargement' LIMIT 1"))->valeur_int ?? 10;
// $perPage = current(DB::select("SELECT valeur_int FROM adminConfig WHERE cle = 'pas_chargement' LIMIT 1"))->valeur_int ?? 10;
$query = AgentPlus::where('category', 'geolocated')->where('code_dial', $dial_code)->where('etat', 1)->distinct();
@ -338,7 +338,7 @@ class HelperController extends Controller
$query = $query->where('id', $id);
}
$agents = $query->selectRaw('id , firstname, lastname, adresse , email , longitude , latitude , phone , transactionNumber , openHours , closeHours , solde , network, country')->paginate($perPage);
$agents = $query->selectRaw('id , firstname, lastname, adresse , email , longitude , latitude , phone , transactionNumber , openHours , closeHours , solde , network, country');//->paginate($perPage);
return $this->successResponse($agents);
}
}