Skip to content

Commit

Permalink
desc
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Nov 13, 2023
1 parent 9248f32 commit 8337d2b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions apps/dashboard/src/jobs/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,12 @@ client.defineJob({
.single();

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

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

0 comments on commit 8337d2b

Please sign in to comment.