Skip to content

Commit

Permalink
Conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Nov 13, 2023
1 parent 67fd53c commit ab4a643
Show file tree
Hide file tree
Showing 5 changed files with 320 additions and 316 deletions.
2 changes: 1 addition & 1 deletion apps/dashboard/src/components/charts/realtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function Realtime({ teamId }) {
`spending-${teamId}`,
`metrics-${teamId}`,
]);
},
}
)
.subscribe();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ExportTransactionsModal({ isOpen, setOpen }) {
<DialogTitle>Export</DialogTitle>
<DialogDescription>
Heads up, we’ve noticed that 12 of your transactions are missing
receipts. Click show more and we’ll filter them for you.
receipts. Click show more and we’ll filter them for you.
</DialogDescription>
</DialogHeader>
</div>
Expand Down
5 changes: 2 additions & 3 deletions apps/dashboard/src/jobs/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const transformTransactions = (transactions, { teamId, accountId }) =>
name: capitalCase(data.additionalInformation),
original: data.additionalInformation,
method: mapTransactionMethod(data.proprietaryBankTransactionCode),
provider_transaction_id: data.internalTransactionId,
internal_id: data.internalTransactionId,
amount: data.transactionAmount.amount,
currency: data.transactionAmount.currency,
bank_account_id: accountId,
Expand Down Expand Up @@ -100,7 +100,6 @@ client.defineJob({
.single();

if (!data) {
// TODO: Remove schedule
await io.logger.error(`Bank account not found: ${ctx.source.id}`);
await dynamicSchedule.unregister(ctx.source.id);
}
Expand All @@ -121,7 +120,7 @@ client.defineJob({
teamId: data?.team_id,
}),
{
onConflict: "provider_transaction_id",
onConflict: "internal_id",
ignoreDuplicates: true,
},
);
Expand Down
1 change: 1 addition & 0 deletions packages/supabase/src/queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ export async function getTransaction(supabase: Client, id: string) {
`)
.eq("id", id)
.single()

.throwOnError();
}

Expand Down
Loading

0 comments on commit ab4a643

Please sign in to comment.