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

Move config keys to ClientShared

parent cd672c73
Branches
No related tags found
No related merge requests found
Pipeline #32763 passed
......@@ -2,6 +2,7 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
<mapping directory="$PROJECT_DIR$/.idea/jetbrainsConfiguration" vcs="Git" />
<mapping directory="$PROJECT_DIR$/src/shared" vcs="Git" />
<mapping directory="$PROJECT_DIR$/src/sharedByClients" vcs="Git" />
</component>
......
......@@ -15,10 +15,6 @@ class Config {
}
};
public readonly assignment: {
name: string; secret: string;
};
constructor() {
this.appName = process.env.APP_NAME || '';
......@@ -35,11 +31,6 @@ class Config {
assignmentChecker: process.env.DOCKERHUB_ASSIGNMENT_CHECKER_REPOSITORY || ''
}
};
this.assignment = {
name : process.env.DOJO_ASSIGNMENT_NAME || '',
secret: process.env.DOJO_ASSIGNMENT_SECRET || ''
};
}
private resetResultsVolume(): void {
......
......@@ -41,7 +41,7 @@ class HttpManager {
config.headers['Content-Type'] = 'multipart/form-data';
}
config.headers.assignmentsecret = Config.assignment.secret;
config.headers.assignmentsecret = ClientsSharedConfig.assignment.secret;
config.headers['client'] = 'DojoAssignmentChecker';
config.headers['client-version'] = version;
......
Subproject commit 3cd3c507acfe4d758fb7d4d3b7c43ad7d8ab4730
Subproject commit 6ca55f11e67f26d83efe1745e4a83d9ac09fa99d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment