diff --git a/packages/jobs/src/transactions/initial.ts b/packages/jobs/src/transactions/initial.ts index 11e7dfe719..56926dcf3c 100644 --- a/packages/jobs/src/transactions/initial.ts +++ b/packages/jobs/src/transactions/initial.ts @@ -24,8 +24,6 @@ client.defineJob({ const { transactions } = await getTransactions(accountId); - await io.logger.error(JSON.stringify(transactions, null, 2)); - // Update bank account last_accessed await io.supabase.client .from("bank_accounts") diff --git a/packages/jobs/src/utils.ts b/packages/jobs/src/utils.ts index 4113a71a0c..a9e714e005 100644 --- a/packages/jobs/src/utils.ts +++ b/packages/jobs/src/utils.ts @@ -45,7 +45,7 @@ export const transformTransactions = (transactions, { teamId, accountId }) => name: capitalCase(data.additionalInformation), original: data.additionalInformation, method: mapTransactionMethod(data.proprietaryBankTransactionCode), - internal_id: data.internalTransactionId, + internal_id: `${teamId}_${data.internalTransactionId}`, amount: data.transactionAmount.amount, currency: data.transactionAmount.currency, bank_account_id: accountId,