Skip to content

Commit 77228d4

Browse files
committed
fix: crs locations marked as exam sessionType
1 parent 31e1608 commit 77228d4

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/pages/api/active.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,6 @@ const locations = async (req: NextApiRequest, res: NextApiResponse) => {
200200
// Get hosts in exam mode from the exam-rebooter service
201201
const examHosts = await getHostsInExamMode();
202202

203-
// Modify all hosts in the response that are in exam mode
204-
for (const responseLocation of responseJSON) {
205-
if (examHosts.includes(responseLocation.hostname)) {
206-
responseLocation.sessionType = 'exam';
207-
console.log(`Marked host at ${responseLocation.hostname} as in exam mode (was already in response locations)`);
208-
}
209-
}
210-
211203
// Add any missing hosts in exam mode to the response
212204
for (const examHost of examHosts) {
213205
if (!responseJSON.some((responseLocation) => responseLocation.hostname == examHost)) {

0 commit comments

Comments
 (0)