fix bug get danak services

This commit is contained in:
hamid zarghami
2025-04-23 16:30:36 +03:30
parent a7e347e9ac
commit 1ce702b1a5
+1 -1
View File
@@ -10,7 +10,7 @@ import {
export const getServicesByCategory = async (categoryId?: string) => { export const getServicesByCategory = async (categoryId?: string) => {
let query = `?limit=50`; let query = `?limit=50`;
if (categoryId) { if (categoryId) {
query = `&categoryId=${categoryId}`; query += `&categoryId=${categoryId}`;
} }
const { data } = await axios.get<ServiceResponse>( const { data } = await axios.get<ServiceResponse>(
`/danak-services/public${query}` `/danak-services/public${query}`