From 318fcde8b85b4bf352107e0a0215bdd74bafe45d Mon Sep 17 00:00:00 2001 From: Tulasi Atikamsetti Date: Fri, 17 Jun 2022 12:41:22 -0700 Subject: [PATCH] CANVAS-184 - Video reserves links not showing up. --- src/server/services/registrar.js | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/server/services/registrar.js b/src/server/services/registrar.js index 7c90539e..21064ba9 100644 --- a/src/server/services/registrar.js +++ b/src/server/services/registrar.js @@ -168,17 +168,18 @@ async function getShortname(offeredTermCode, classSectionID) { } = response; // Check if course is summer sessions. - if (offeredTermCode.slice(-1) === '1') { - registrarDebug('getShortname: Handling Summer session'); - // Get session group. - response = await registrar.call({ - url: `/sis/classes/${offeredTermCode}/v1`, - params: { - subjectAreaCode: subArea, - courseCatalogNumber: catNum, - classNumber: secNum, - }, - }); + // CANVAS-184 - Commented out to handle summer course to match up with Canvas SIS-ID. +// if (offeredTermCode.slice(-1) === '1') { +// registrarDebug('getShortname: Handling Summer session'); +// // Get session group. +// response = await registrar.call({ +// url: `/sis/classes/${offeredTermCode}/v1`, +// params: { +// subjectAreaCode: subArea, +// courseCatalogNumber: catNum, +// classNumber: secNum, +// }, +// }); if (response === null) { registrarDebug('getShortname: Classes is null');