paginations ,limit=50

This commit is contained in:
Arezoo
2025-10-22 14:30:30 +03:30
parent bfd797dd02
commit f22526bff3
11 changed files with 111 additions and 43 deletions
-3
View File
@@ -8,8 +8,6 @@ export async function getClinicDoctors(slug, params = {}) {
const query = new URLSearchParams(params).toString();
const finalUrl = `${baseUrl}/api/v1/clinic/doctor-list/${slug}?${query}`;
console.log("Final API URL:", finalUrl);
const response = await fetch(finalUrl, { method: "GET" });
if (!response.ok) {
@@ -18,7 +16,6 @@ export async function getClinicDoctors(slug, params = {}) {
}
const json = await response.json();
console.log("✅ raw API result:", json);
const doctorsList = json?.data || json || [];
return Array.isArray(doctorsList) ? doctorsList : [];