From 984c7773bb3eded349de55cbc575b02616b0e594 Mon Sep 17 00:00:00 2001 From: FX Wood <40310772+FX-Wood@users.noreply.github.com> Date: Mon, 13 Nov 2023 21:09:27 +0000 Subject: [PATCH] support event names --- src/repos/user-input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repos/user-input.ts b/src/repos/user-input.ts index 7334839..be89573 100644 --- a/src/repos/user-input.ts +++ b/src/repos/user-input.ts @@ -34,7 +34,7 @@ export const getTargetEvent = async ( const someMonthsInFuture = getDateMonthsInFuture(MONTHS_IN_FUTURE_LIMIT); const choices: { title: string; value: WebsiteAirtablePair }[] = []; for (const event in events) { - const eventDate = new Date(String(event)); + const eventDate = new Date(String(events[event].airtable.get("Date"))); if (eventDate > someMonthsAgo && eventDate < someMonthsInFuture) { choices.push({ title: String(events[event].airtable.get("Name")),