From 740b49ca76705d3d240b0dcee33ba2df7ee85f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fagundes?= Date: Mon, 10 Jun 2024 10:24:12 -0300 Subject: [PATCH] fix: import error --- src/service/donationOrder/donationOrder.service.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/service/donationOrder/donationOrder.service.ts b/src/service/donationOrder/donationOrder.service.ts index aba23f35..7483e407 100644 --- a/src/service/donationOrder/donationOrder.service.ts +++ b/src/service/donationOrder/donationOrder.service.ts @@ -3,10 +3,10 @@ import { DonateOrderStatus, ICreateDonateResponse, ICreateDonationOrderProps, - IDonateOrderItem, } from './types'; import { IServerResponse } from '@/types'; import { IPaginatedResponse } from '@/hooks/usePaginatedQuery/types'; +import { IDonationsData } from '@/hooks/useDonations/types'; const DonationOrderServices = { store: async (payload: ICreateDonationOrderProps) => { @@ -16,22 +16,22 @@ const DonationOrderServices = { ); return data; }, - getAll: async (shelterId: string) => { + getAll: async (shelterId?: string) => { const { data } = await api.get< - IServerResponse> + IServerResponse> >('/donation/order', { params: { shelterId }, }); return data; }, find: async (id: string) => { - const { data } = await api.get>( + const { data } = await api.get>( `/donation/order/${id}` ); return data; }, update: async (id: string, payload: { status: DonateOrderStatus }) => { - const { data } = await api.put>( + const { data } = await api.put( `/donation/order/${id}`, payload );