Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/patch/CANVAS-184-VideoReserves-l…
Browse files Browse the repository at this point in the history
…inks-not-showing-up'
  • Loading branch information
Tulasi Atikamsetti authored and Tulasi Atikamsetti committed Jun 17, 2022
2 parents 6d080d2 + 318fcde commit 0330b73
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions src/server/services/registrar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 0330b73

Please sign in to comment.