From ed275f475a05817eab6858b63986e31ed33e907e Mon Sep 17 00:00:00 2001 From: 4Ventures <4ventures@MacBook-Air-de-4Ventures.local> Date: Tue, 6 Oct 2026 15:37:36 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20leftover=20lookback=20constant=20so=20the?= =?UTF-8?q?=20Ads/M=C3=A9tricas=20build=20compiles.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/app/dashboard/kpis/page.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/dashboard/kpis/page.tsx b/src/app/dashboard/kpis/page.tsx index 1465984..683fef1 100644 --- a/src/app/dashboard/kpis/page.tsx +++ b/src/app/dashboard/kpis/page.tsx @@ -216,9 +216,7 @@ async function fetchOrganicDaily( tenantId: string | null, useServiceRole: boolean ): Promise { - const since = new Date(); - since.setUTCDate(since.getUTCDate() - AD_DAILY_LOOKBACK_DAYS); - const sinceStr = since.toISOString().slice(0, 10); + const sinceStr = adDailyLookbackSince(); if (useServiceRole) { const headers = serviceHeaders();