Skip to content

Commit 4e56a02

Browse files
committed
Calendar: Add pad domain to ensure global uniqueness
1 parent 7ca8c2d commit 4e56a02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/src/routes/ical.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ICalCalendar } from "ical-generator";
22
import { Request, Response, Handler } from "express";
33
import { Pool } from "pg";
4+
import config from "../config";
45

56
type CtfRow = {
67
id: number;
@@ -54,7 +55,7 @@ export function icalRoute(pool: Pool): Handler {
5455

5556
for (const ctf of ctfs) {
5657
cal.createEvent({
57-
id: ctf.id,
58+
id: `${ctf.id}@${config.pad.domain}`,
5859
start: ctf.start_time,
5960
end: ctf.end_time,
6061
description: ctf.description,

0 commit comments

Comments
 (0)