From 3658fd0c49d2ed1b067041d0d7d907069bacc9bb Mon Sep 17 00:00:00 2001 From: StiftungAusNachlass Date: Thu, 21 Dec 2023 17:28:05 +0100 Subject: [PATCH] escalate if no license is given --- src/server/extension/monitoring-endpoint.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/extension/monitoring-endpoint.js b/src/server/extension/monitoring-endpoint.js index 5541ad6..92eb0f1 100755 --- a/src/server/extension/monitoring-endpoint.js +++ b/src/server/extension/monitoring-endpoint.js @@ -432,6 +432,12 @@ process.stdin.on('end', () => { if (timeDifference < threeWeeksInMilliseconds) { escalateValidation = true; // Der Zeitstempel liegt weniger als drei Wochen in der Zukunft } + + // of no license at all + if (result.license.licenseValidTo == '-' || result.license.licenseCreatedAt == '-') { + escalateValidation = true; + } + result.license.escalate = escalateValidation; // shell the license-dates be echoed?