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

Move config keys to ClientShared

parent 8f98eaac
Branches main
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" /> <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/shared" vcs="Git" />
<mapping directory="$PROJECT_DIR$/src/sharedByClients" vcs="Git" /> <mapping directory="$PROJECT_DIR$/src/sharedByClients" vcs="Git" />
</component> </component>
......
...@@ -23,11 +23,6 @@ class Config { ...@@ -23,11 +23,6 @@ class Config {
} }
}; };
public readonly assignment!: {
name: string; secret: string;
};
constructor() { } constructor() { }
async init() { async init() {
...@@ -60,11 +55,6 @@ class Config { ...@@ -60,11 +55,6 @@ class Config {
assignmentChecker: getEnvVar('DOCKERHUB_ASSIGNMENT_CHECKER_REPOSITORY', '') assignmentChecker: getEnvVar('DOCKERHUB_ASSIGNMENT_CHECKER_REPOSITORY', '')
} }
}; };
this.assignment = {
name : process.env.DOJO_ASSIGNMENT_NAME || '',
secret: process.env.DOJO_ASSIGNMENT_SECRET || ''
};
} }
private resetResultsVolume(): void { private resetResultsVolume(): void {
......
...@@ -41,7 +41,7 @@ class HttpManager { ...@@ -41,7 +41,7 @@ class HttpManager {
config.headers['Content-Type'] = 'multipart/form-data'; 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'] = 'DojoAssignmentChecker';
config.headers['client-version'] = version; config.headers['client-version'] = version;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment