mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
refactor: mail templates
This commit is contained in:
@@ -320,7 +320,7 @@ export function useSaleEstimateMailState(
|
||||
const apiRequest = useApiRequest();
|
||||
return useQuery([t.SALE_ESTIMATE_MAIL_OPTIONS, estimateId], () =>
|
||||
apiRequest
|
||||
.get(`sale-estimates/${estimateId}/mail/state`)
|
||||
.get(`sale-estimates/${estimateId}/mail`)
|
||||
.then((res) => transformToCamelCase(res.data)),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -460,8 +460,8 @@ export function useSaleInvoiceMailState(
|
||||
[t.SALE_INVOICE_DEFAULT_OPTIONS, invoiceId],
|
||||
() =>
|
||||
apiRequest
|
||||
.get(`/sale-invoices/${invoiceId}/mail/state`)
|
||||
.then((res) => transformToCamelCase(res.data?.data)),
|
||||
.get(`/sale-invoices/${invoiceId}/mail`)
|
||||
.then((res) => transformToCamelCase(res.data)),
|
||||
options,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user