Skip to content

Commit

Permalink
use UID (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
jongrim authored Feb 27, 2024
1 parent 786742d commit ccadd81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions netlify/functions/webcal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const handler: Handler = async (event) => {

function createIcs(
events: {
uid: string;
startTime: number;
endTime: number;
title: string;
Expand All @@ -93,6 +94,7 @@ function createIcs(
) {
const { value } = ics.createEvents(
events.map((event) => ({
uid: event.uid,
start: format(event.startTime, "yyyy-M-d-H-m")
.split("-")
.map((val) => parseInt(val)) as [
Expand Down

0 comments on commit ccadd81

Please sign in to comment.