We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ca8c2d commit 4e56a02Copy full SHA for 4e56a02
api/src/routes/ical.ts
@@ -1,6 +1,7 @@
1
import { ICalCalendar } from "ical-generator";
2
import { Request, Response, Handler } from "express";
3
import { Pool } from "pg";
4
+import config from "../config";
5
6
type CtfRow = {
7
id: number;
@@ -54,7 +55,7 @@ export function icalRoute(pool: Pool): Handler {
54
55
56
for (const ctf of ctfs) {
57
cal.createEvent({
- id: ctf.id,
58
+ id: `${ctf.id}@${config.pad.domain}`,
59
start: ctf.start_time,
60
end: ctf.end_time,
61
description: ctf.description,
0 commit comments