* Endpoint to preset credentials

*  Endpoint to preset credentials

*  Improvements

* 🐛 Small fix

* 🐛 Small fix
This commit is contained in:
Ricardo Espinoza
2020-07-07 13:03:53 -04:00
committed by GitHub
parent b1ee1efcb1
commit 8aff042e04
3 changed files with 62 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ class CredentialsOverwritesClass {
return;
}
const data = await GenericHelpers.getConfigValue('credentials.overwrite') as string;
const data = await GenericHelpers.getConfigValue('credentials.overwrite.data') as string;
try {
this.overwriteData = JSON.parse(data);
@@ -30,6 +30,7 @@ class CredentialsOverwritesClass {
}
applyOverwrite(type: string, data: ICredentialDataDecryptedObject) {
const overwrites = this.get(type);
if (overwrites === undefined) {