Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Jun 11, 2024
1 parent 0b3898a commit 4d0a7fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/jobs/src/transactions/initial-sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ client.defineJob({
await processPromisesBatch(transactions, BATCH_LIMIT, async (batch) => {
const formatted = batch.map(({ category, ...rest }) => ({
...rest,
original_name: rest.name,
original_description: rest.description,
category_slug: category,
}));

Expand Down
2 changes: 2 additions & 0 deletions packages/supabase/src/mutations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export async function createTransactions(
return supabase.from("transactions").insert(
transactions.map((transaction) => ({
...transaction,
original_name: transaction.name,
original_description: transaction.description,
team_id: teamId,
}))
);
Expand Down

0 comments on commit 4d0a7fc

Please sign in to comment.