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 0330b73 + 6882e15 commit cd9913b
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/server/services/registrar.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,25 +180,25 @@ async function getShortname(offeredTermCode, classSectionID) {
// classNumber: secNum,
// },
// });

if (response === null) {
registrarDebug('getShortname: Classes is null');
return returnObject;
}

// Find the session that matches the class number.
let sessionGroup = '';
response.classes[0].termSessionGroupCollection.forEach((groupItem) => {
groupItem.classCollection.forEach((classItem) => {
if (classItem.classNumber === secNum) {
sessionGroup = groupItem.termsessionGroupCode;
}
});
});

registrarDebug(`getShortname: using sessionGroup ${sessionGroup}`);
term += sessionGroup;
}
//
// if (response === null) {
// registrarDebug('getShortname: Classes is null');
// return returnObject;
// }
//
// // Find the session that matches the class number.
// let sessionGroup = '';
// response.classes[0].termSessionGroupCollection.forEach((groupItem) => {
// groupItem.classCollection.forEach((classItem) => {
// if (classItem.classNumber === secNum) {
// sessionGroup = groupItem.termsessionGroupCode;
// }
// });
// });
//
// registrarDebug(`getShortname: using sessionGroup ${sessionGroup}`);
// term += sessionGroup;
// }

// Combine shortname components.
const shortname = `${term}-${subArea}-${catNum}-${secNum}`;
Expand Down

0 comments on commit cd9913b

Please sign in to comment.