Skip to content
Snippets Groups Projects
Commit 66fd49c0 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: add configuration protection

parent d709de0e
No related branches found
No related tags found
1 merge request!12Feat/donnes tech debut contrat
......@@ -79,6 +79,12 @@ async function start(fields, cozyParameters) {
sgeLogin = cozyParameters.secret.sgeLogin
}
// Prevent missing configuration
if (!baseUrl || !apiAuthKey || !contractId || !sgeLogin) {
log('error', `Missing configuration secrets`)
throw errors.VENDOR_DOWN
}
/**
* If it's first start we have to do the following operations:
* - verify pdl are matching
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment