File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff 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 ) ) {
You can’t perform that action at this time.
0 commit comments