Skip to content

Commit

Permalink
Merge pull request #15 from FX-Wood/fxwood/support-dynamic-event-names
Browse files Browse the repository at this point in the history
Support Dynamic Event Names
  • Loading branch information
FX-Wood authored Nov 13, 2023
2 parents dee27d0 + 984c777 commit d9078c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/repos/user-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit d9078c6

Please sign in to comment.