diff --git a/helpers/Dojo/AssignmentValidator.ts b/helpers/Dojo/AssignmentValidator.ts index 97c848fbe85518d03738c34728b2c4f89c1b9cdf..47ca095657a37864d94be8b39b68dd278b42a24c 100644 --- a/helpers/Dojo/AssignmentValidator.ts +++ b/helpers/Dojo/AssignmentValidator.ts @@ -15,7 +15,6 @@ import Assignment, { Language } from '../../models/Assignment'; import ClientsSharedAssignmentHelper from './ClientsSharedAssignmentHelper'; import { spawnSync } from 'node:child_process'; import SharedConfig from '../../../shared/config/SharedConfig'; -import Config from '../../../config/Config'; import { add } from 'winston'; @@ -131,7 +130,7 @@ class AssignmentValidator { { this.newStep('ASSIGNMENT_CHECKING', 'Please wait while we are checking the assignment...'); - const resp = await ClientsSharedAssignmentHelper.getAssignmentByName(Config.assignment.name); + const resp = await ClientsSharedAssignmentHelper.getAssignmentByName(ClientsSharedConfig.assignment.name); if (resp == undefined) { this.emitError(`The assignment doesn't exist. An assignment must be created with "assignment create" before checking it.`, `Assignment doesn't exists`, AssignmentCheckerError.ASSIGNMENT_MISSING); return;