mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
refactor(nestjs): validation schema dtos
This commit is contained in:
@@ -225,7 +225,7 @@ export function useBankRule(
|
||||
() =>
|
||||
apiRequest
|
||||
.get(`/banking/rules/${bankRuleId}`)
|
||||
.then((res) => res.data.bank_rule),
|
||||
.then((res) => res.data),
|
||||
{ ...options },
|
||||
);
|
||||
}
|
||||
|
||||
@@ -238,11 +238,11 @@ export function useDueInvoices(customerId, props) {
|
||||
[t.SALE_INVOICES, t.SALE_INVOICES_DUE, customerId],
|
||||
{
|
||||
method: 'get',
|
||||
url: `sale-invoices/payable`,
|
||||
url: `sale-invoices/receivable`,
|
||||
params: { customer_id: customerId },
|
||||
},
|
||||
{
|
||||
select: (res) => res.data.sales_invoices,
|
||||
select: (res) => res.data,
|
||||
defaultData: [],
|
||||
...props,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user