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

Correct config

parent 3cd3c507
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ class ClientsSharedConfig { ...@@ -2,7 +2,7 @@ class ClientsSharedConfig {
public apiURL: string; public apiURL: string;
public assignment: { public assignment: {
filename: string, neededFiles: Array<string> filename: string, neededFiles: Array<string>, name: string, secret: string;
}; };
public gitlab: { public gitlab: {
...@@ -19,13 +19,14 @@ class ClientsSharedConfig { ...@@ -19,13 +19,14 @@ class ClientsSharedConfig {
results: string; results: string;
}; };
constructor() { constructor() {
this.apiURL = process.env.API_URL || ''; this.apiURL = process.env.API_URL || '';
this.assignment = { this.assignment = {
filename : process.env.ASSIGNMENT_FILENAME || '', filename : process.env.ASSIGNMENT_FILENAME || '',
neededFiles: JSON.parse(process.env.EXERCISE_NEEDED_FILES || '[]') neededFiles: JSON.parse(process.env.EXERCISE_NEEDED_FILES || '[]'),
name : process.env.DOJO_ASSIGNMENT_NAME || '',
secret: process.env.DOJO_ASSIGNMENT_SECRET || ''
}; };
this.gitlab = { this.gitlab = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment