From 1b2d9d6be341dc4d627b1f2e1eea41d181380b67 Mon Sep 17 00:00:00 2001
From: Joel von der Weid <joel.von-der-weid@hesge.ch>
Date: Wed, 12 Jun 2024 08:30:56 +0200
Subject: [PATCH] Correct config use

---
 helpers/Dojo/AssignmentValidator.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/helpers/Dojo/AssignmentValidator.ts b/helpers/Dojo/AssignmentValidator.ts
index 97c848f..47ca095 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;
-- 
GitLab