refactor(nestjs): plaid banking syncing

This commit is contained in:
Ahmed Bouhuolia
2025-06-01 18:38:29 +02:00
parent 66a2261e50
commit deadd5ac80
19 changed files with 267 additions and 132 deletions

View File

@@ -552,7 +552,7 @@ export function useGetRecognizedBankTransaction(
() =>
apiRequest
.get(`/banking/recognized/transactions/${uncategorizedTransactionId}`)
.then((res) => transformToCamelCase(res.data?.data)),
.then((res) => transformToCamelCase(res.data)),
options,
);
}
@@ -580,7 +580,7 @@ export function useGetBankAccountSummaryMeta(
() =>
apiRequest
.get(`/banking/accounts/${bankAccountId}/summary`)
.then((res) => transformToCamelCase(res.data?.data)),
.then((res) => transformToCamelCase(res.data)),
{ ...options },
);
}
@@ -616,7 +616,7 @@ export function useGetAutofillCategorizeTransaction(
.get(`/banking/categorize/autofill`, {
params: { uncategorizedTransactionIds },
})
.then((res) => transformToCamelCase(res.data?.data)),
.then((res) => transformToCamelCase(res.data)),
{ ...options },
);
}