From 0ec0f65d5e6d7c07bb318b156fdccb426b61fef0 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Mon, 13 Nov 2023 20:55:49 +0100 Subject: [PATCH] Revalidate --- apps/dashboard/src/jobs/transactions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/jobs/transactions.ts b/apps/dashboard/src/jobs/transactions.ts index 4d3e7bf4d3..b6e7bb89b0 100644 --- a/apps/dashboard/src/jobs/transactions.ts +++ b/apps/dashboard/src/jobs/transactions.ts @@ -102,7 +102,7 @@ client.defineJob({ .single(); // Update bank account last_accessed - io.supabase.client + await io.supabase.client .from("bank_accounts") .update({ last_accessed: new Date(), @@ -110,6 +110,7 @@ client.defineJob({ .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}`);