[FIX][ENTERPRISE] Omnichannel service status switching to unavailable (#18835)

pull/18862/head
Renato Becker 5 years ago committed by GitHub
parent 03fd08d1d3
commit bb52d5da23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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();
});

Loading…
Cancel
Save