[fix] do not add reminders in full ics export

This commit is contained in:
les
2019-11-06 11:21:00 +01:00
parent e6f5372497
commit b7eb697941
2 changed files with 14 additions and 8 deletions

View File

@@ -104,7 +104,11 @@ const eventController = {
if (format === 'json') {
res.json(event)
} else if (format === 'ics') {
exportController.ics(req, res, [event])
// last arg is alarms/reminder, ref: https://github.com/adamgibbons/ics#attributes (alarms)
exportController.ics(req, res, [event], [{
action: 'display',
trigger: { hours: 1, before: true }
}])
}
} else {
res.sendStatus(404)