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

This commit is contained in:
Patrick Müller 2021-10-07 20:17:06 +02:00
parent 0a336082ed
commit 2764ca1057

View File

@ -94,6 +94,7 @@ export const removeElective = function (ical: iCalFile, chosenElective: string):
let remainingEvents: string[] = []; let remainingEvents: string[] = [];
let electiveToRemove = electiveModules; let electiveToRemove = electiveModules;
logger.info(JSON.stringify(electiveToRemove));
electiveToRemove.splice(parseInt(chosenElective), 1); electiveToRemove.splice(parseInt(chosenElective), 1);
logger.info('Chosen elective: ' + chosenElective); logger.info('Chosen elective: ' + chosenElective);
@ -121,6 +122,7 @@ export const removeProfile = function (ical: iCalFile, chosenProfile: string): i
let remainingEvents: string[] = []; let remainingEvents: string[] = [];
let profileToRemove = profileModules; let profileToRemove = profileModules;
logger.info(JSON.stringify(profileToRemove));
profileToRemove.splice(parseInt(chosenProfile), 1); profileToRemove.splice(parseInt(chosenProfile), 1);
logger.info('Chosen profile: ' + chosenProfile); logger.info('Chosen profile: ' + chosenProfile);