mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
refactor(nestjs): banking module
This commit is contained in:
@@ -668,7 +668,7 @@ export function useExcludedBankTransactionsInfinity(
|
||||
const response = await apiRequest.http({
|
||||
...axios,
|
||||
method: 'get',
|
||||
url: `/api/banking/excluded`,
|
||||
url: `/api/banking/exclude`,
|
||||
params: { page: pageParam, ...query },
|
||||
});
|
||||
return response.data;
|
||||
@@ -700,7 +700,7 @@ export function usePendingBankTransactionsInfinity(
|
||||
const response = await apiRequest.http({
|
||||
...axios,
|
||||
method: 'get',
|
||||
url: `/api/banking/accounts/pending_transactions`,
|
||||
url: `/api/banking/pending`,
|
||||
params: { page: pageParam, ...query },
|
||||
});
|
||||
return response.data;
|
||||
|
||||
@@ -157,7 +157,7 @@ export function useAccountUncategorizedTransactionsInfinity(
|
||||
const response = await apiRequest.http({
|
||||
...axios,
|
||||
method: 'get',
|
||||
url: `/api/banking/transactions/${accountId}/uncategorized`,
|
||||
url: `/api/banking/uncategorized/accounts/${accountId}`,
|
||||
params: { page: pageParam, ...query },
|
||||
});
|
||||
return response.data;
|
||||
@@ -231,7 +231,7 @@ export function useUncategorizedTransaction(
|
||||
[t.CASHFLOW_UNCAATEGORIZED_TRANSACTION, uncategorizedTranasctionId],
|
||||
{
|
||||
method: 'get',
|
||||
url: `banking/transactions/uncategorized/${uncategorizedTranasctionId}`,
|
||||
url: `banking/uncategorized/${uncategorizedTranasctionId}`,
|
||||
},
|
||||
{
|
||||
select: (res) => res.data?.data,
|
||||
|
||||
Reference in New Issue
Block a user