Add possibility to add birthdays + repeating events to the API
Jenkins Production Deployment

This commit is contained in:
2025-09-07 18:15:15 +02:00
parent 9c45fb11ee
commit dc65b49219
5 changed files with 21 additions and 7 deletions
+6 -1
View File
@@ -25,7 +25,8 @@ export const calendarNames = new Map<string, any>([
['public', {id: 1, name: 'Nachklang_calendar'}],
['members', {id: 2, name: 'Nachklang_internal_calendar'}],
['choir', {id: 4, name: 'Nachklang_choir_calendar'}],
['management', {id: 3, name: 'Nachklang_management_calendar'}]
['management', {id: 3, name: 'Nachklang_management_calendar'}],
['birthdays', {id: 5, name: 'Nachklang_birthday_calendar'}]
]);
@@ -557,6 +558,7 @@ eventsRouter.post('/', async (req: Request, res: Response) => {
createdById: user.userId ?? -1,
url: req.body.url ?? '',
wholeDay: req.body.wholeDay ?? false,
repeatFrequency: req.body.repeatFrequency ?? '',
status: req.body.status ?? 'PUBLIC'
};
@@ -736,6 +738,7 @@ eventsRouter.put('/:eventId', async (req: Request, res: Response) => {
createdById: user.userId ?? -1,
url: req.body.url ?? '',
wholeDay: req.body.wholeDay ?? false,
repeatFrequency: req.body.repeatFrequency ?? '',
status: req.body.status ?? 'PUBLIC'
};
@@ -913,6 +916,7 @@ eventsRouter.put('/move/:eventId', async (req: Request, res: Response) => {
createdById: user.userId ?? -1,
url: req.body.url ?? '',
wholeDay: req.body.wholeDay ?? false,
repeatFrequency: req.body.repeatFrequency ?? '',
status: req.body.status ?? 'PUBLIC'
};
@@ -1044,6 +1048,7 @@ eventsRouter.delete('/:eventId', async (req: Request, res: Response) => {
createdById: user.userId ?? -1,
url: '',
wholeDay: false,
repeatFrequency: '',
status: 'DELETED'
};