Skip to content
Snippets Groups Projects
Commit 1b2d9d6b authored by joel.vonderwe's avatar joel.vonderwe
Browse files

Correct config use

parent 984e096d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment