From 9caf130b5bd31859d599627ac45a8f469d9ca007 Mon Sep 17 00:00:00 2001 From: Renato Becker Date: Thu, 10 Sep 2020 18:30:17 -0300 Subject: [PATCH] [FIX][ENTERPRISE] Omnichannel service status switching to unavailable (#18835) --- ee/app/livechat-enterprise/server/startup.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ee/app/livechat-enterprise/server/startup.js b/ee/app/livechat-enterprise/server/startup.js index e9615a5735df..cda5f67331ee 100644 --- a/ee/app/livechat-enterprise/server/startup.js +++ b/ee/app/livechat-enterprise/server/startup.js @@ -31,7 +31,9 @@ Meteor.startup(async function() { }); settings.onload('Livechat_business_hour_type', (_, value) => { businessHourManager.registerBusinessHourBehavior(businessHours[value]); - businessHourManager.startManager(); + if (settings.get('Livechat_enable_business_hours')) { + businessHourManager.startManager(); + } }); await resetDefaultBusinessHourIfNeeded(); });