From c4627ca7916ba2e29e5f21abbc027f1c2f39bc50 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Fri, 21 Feb 2025 20:00:04 +0330 Subject: [PATCH] Updated --- frontend/composables/api/products/useGetProducts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/composables/api/products/useGetProducts.ts b/frontend/composables/api/products/useGetProducts.ts index c31171d..6c5e6df 100644 --- a/frontend/composables/api/products/useGetProducts.ts +++ b/frontend/composables/api/products/useGetProducts.ts @@ -5,7 +5,7 @@ import { API_ENDPOINTS, QUERY_KEYS } from "~/constants"; // types -export type GetProductsResponse = ApiPaginated; +export type GetProductsResponse = ApiPaginated; export type GetProductsFilters = { search?: string | undefined; @@ -40,8 +40,8 @@ const useGetProducts = (params?: ComputedRef) => { price_gte: params?.price_gte, price_lte: params?.price_lte, offset: Number(params?.page) * 9 - 9, - limit: 9, - }, + limit: 9 + } } ); @@ -51,7 +51,7 @@ const useGetProducts = (params?: ComputedRef) => { return useQuery({ staleTime: 60 * 1000, queryKey: [QUERY_KEYS.products, params], - queryFn: () => handleGetProducts(params?.value), + queryFn: () => handleGetProducts(params?.value) }); };