API-32: Adding debugging infos
All checks were successful
Jenkins Production Deployment

This commit is contained in:
Patrick Müller 2021-10-07 14:11:40 +02:00
parent 9b58a8d237
commit 50dfb4c94a

View File

@ -1,3 +1,5 @@
import logger from '../../../middleware/logger';
const fetch = require('node-fetch');
export const getiCalFile = async (user: string, file: string, showBlockers: boolean, electiveModule: string, profileModule: string): Promise<string> => {
@ -98,6 +100,7 @@ export const removeElective = function (ical: iCalFile, chosenElective: string):
let addEvent = true;
electiveToRemove.forEach((module) => {
if (event.includes(module.name)) {
logger.info('Removing elective ' + module.name);
addEvent = false;
}
});
@ -123,6 +126,7 @@ export const removeProfile = function (ical: iCalFile, chosenProfile: string): i
profileToRemove.forEach((module) => {
module.names.forEach((name) => {
if (event.includes(name)) {
logger.info('Removing profile ' + name);
addEvent = false;
}
});