refactor(nestjs): validation schema dtos

This commit is contained in:
Ahmed Bouhuolia
2025-05-25 23:39:54 +02:00
parent 2b3f98d8fe
commit 24bf3dd06d
24 changed files with 247 additions and 135 deletions

View File

@@ -225,7 +225,7 @@ export function useBankRule(
() =>
apiRequest
.get(`/banking/rules/${bankRuleId}`)
.then((res) => res.data.bank_rule),
.then((res) => res.data),
{ ...options },
);
}

View File

@@ -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,
},