mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
fix: invoice generate sharable link
This commit is contained in:
@@ -45,7 +45,10 @@ export function useCreatePaymentLink(
|
||||
return useMutation<CreatePaymentLinkResponse, Error, CreatePaymentLinkValues>(
|
||||
(values) =>
|
||||
apiRequest
|
||||
.post('/payment-links/generate', transfromToSnakeCase(values))
|
||||
.post(
|
||||
`/sale-invoices/${values.transactionId}/generate-link`,
|
||||
transfromToSnakeCase(values),
|
||||
)
|
||||
.then((res) => res.data),
|
||||
{
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user