tidy undesolved fix

This commit is contained in:
Joe Dowd
2020-08-24 22:43:36 +01:00
parent 3563924c6f
commit dc7dadd9a1
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ const settings = {
if (config.mode === 'development') {
settings.INFO = true;
settings.DEBUG = true;
} if (config.mode === 'test') {
} else if (config.mode === 'test') {
settings.WARN = false;
}

View File

@@ -35,7 +35,7 @@ function dispatchEvent(scope, data) {
let authKey = webhook.key;
let scopes = webhook.scopes || [];
if (!scopes.includes(scope.toLowerCase())) return;
let hookRequest = request.post(webhookURL, {json: data, headers: {
request.post(webhookURL, {json: data, headers: {
"Authorization": authKey,
"Event-Type": scope // Maybe change this in the future?
}}).on('error', (e) => {