Skip to content

Commit

Permalink
do the thing (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
reteps authored Sep 3, 2024
1 parent dd63ea4 commit 2125c5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/functions/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const updateDiscord = async (
const { title, description, start, end, location, host } = event;
const dateStart = moment.tz(start, "America/Chicago").format("YYYY-MM-DD");
const calendarURL = `https://www.acm.illinois.edu/calendar?id=${id}&date=${dateStart}`;
const fullDescription = `${calendarURL}\n${description}`;
const fullDescription = `${description}\n${calendarURL}`;
const fullTitle = title.toLowerCase().includes(host.toLowerCase())
? title
: `${host} - ${title}`;
Expand All @@ -85,6 +85,7 @@ export const updateDiscord = async (
image: existingMetadata?.coverImageURL({}) || undefined,
scheduledStartTime: moment.tz(start, "America/Chicago").utc().toDate(),
scheduledEndTime: end && moment.tz(end, "America/Chicago").utc().toDate(),
image: existingMetadata?.coverImageURL({}) || undefined,

Check failure on line 88 in src/functions/discord.ts

View workflow job for this annotation

GitHub Actions / Run Unit Tests

An object literal cannot have multiple properties with the same name.
entityMetadata: {
location,
},
Expand Down

0 comments on commit 2125c5d

Please sign in to comment.