From f728fdb8ab0f034f28e17cccba709d4e842048f7 Mon Sep 17 00:00:00 2001 From: Alexander Hesse Date: Thu, 23 Aug 2018 14:06:26 +0200 Subject: [PATCH] BUGFIX: wrong version check for gitlab api Signed-off-by: Alexander Hesse --- lib/config/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config/index.js b/lib/config/index.js index e66c513d..f96684ea 100644 --- a/lib/config/index.js +++ b/lib/config/index.js @@ -104,8 +104,8 @@ config.isOAuth2Enable = config.oauth2.clientID && config.oauth2.clientSecret config.isPDFExportEnable = config.allowPDFExport // Check gitlab api version -if (config.gitlab.version !== 'v4' || config.gitlab.version !== 'v3') { - logger.warn('config.js contains wrong version (' + config.gitlab.version + ') for gitlab api; it should be \'v3\' or \'v4\'. Defaulting to v3') +if (config.gitlab.version !== 'v4' && config.gitlab.version !== 'v3') { + logger.warn('config.js contains wrong version (' + config.gitlab.version + ') for gitlab api; it should be \'v3\' or \'v4\'. Defaulting to v4') config.gitlab.version = 'v4' }