Skip to content

Commit

Permalink
Unique internal_id
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 18, 2023
1 parent 2a2c1c1 commit aefbea0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/jobs/src/transactions/initial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion packages/jobs/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit aefbea0

Please sign in to comment.