fix bug get danak services
This commit is contained in:
@@ -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}`
|
||||||
|
|||||||
Reference in New Issue
Block a user