Skip to content
Snippets Groups Projects
Commit cfebb532 authored by joel.vonderwe's avatar joel.vonderwe Committed by michael.minelli
Browse files

Correct config

parent 8ece6bfc
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,8 @@ class ClientsSharedConfig {
}
};
public assignment!: {
filename: string, neededFiles: Array<string>
filename: string, neededFiles: Array<string>, name: string, secret: string;
};
public exercise!: {
......@@ -121,7 +120,9 @@ class ClientsSharedConfig {
this.assignment = {
filename : getEnvVar('ASSIGNMENT_FILENAME', ''),
neededFiles: JSON.parse(getEnvVar('EXERCISE_NEEDED_FILES', '[]'))
neededFiles: JSON.parse(getEnvVar('EXERCISE_NEEDED_FILES', '[]')),
name : process.env.DOJO_ASSIGNMENT_NAME || '',
secret : process.env.DOJO_ASSIGNMENT_SECRET || ''
};
this.dockerCompose = {
......
......@@ -138,7 +138,7 @@ class AssignmentValidator {
this.newStep('ASSIGNMENT_CHECKING', 'Please wait while we are checking the assignment...');
const resp = await ClientsSharedAssignmentHelper.getAssignmentByName(this.folderAssignment);
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