From bbe6667e302a78ea799136a033ff73ce58e83de9 Mon Sep 17 00:00:00 2001 From: Matt Casey Date: Tue, 29 Oct 2024 22:45:40 -0600 Subject: [PATCH] only count events from start of current week for new builders (#4920) --- apps/scoutgamecron/src/tasks/processBuilderActivity/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scoutgamecron/src/tasks/processBuilderActivity/index.ts b/apps/scoutgamecron/src/tasks/processBuilderActivity/index.ts index 2900da8140..94d1449d09 100644 --- a/apps/scoutgamecron/src/tasks/processBuilderActivity/index.ts +++ b/apps/scoutgamecron/src/tasks/processBuilderActivity/index.ts @@ -63,7 +63,7 @@ export async function processAllBuilderActivity( await processBuilderActivity({ builderId: builder.id, githubUser: builder.githubUser[0]!, - createdAfter: newBuilder ? getDateFromISOWeek(season).toJSDate() : createdAfter, + createdAfter: newBuilder ? getDateFromISOWeek(getCurrentWeek()).toJSDate() : createdAfter, season });