Skip to content

Commit

Permalink
Revalidate
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Nov 13, 2023
1 parent 6b46057 commit 0ec0f65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dashboard/src/jobs/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@ client.defineJob({
.single();

// Update bank account last_accessed
io.supabase.client
await io.supabase.client
.from("bank_accounts")
.update({
last_accessed: new Date(),
})
.eq("id", ctx.source.id);

revalidateTag(`bank_accounts_${data?.team_id}`);
await io.logger.info(`bank_accounts_${data?.team_id}`);

if (!data) {
await io.logger.error(`Bank account not found: ${ctx.source.id}`);
Expand Down

0 comments on commit 0ec0f65

Please sign in to comment.