Skip to content

Commit

Permalink
[FIX][ENTERPRISE] Omnichannel service status switching to unavailable (
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker authored and sampaiodiego committed Sep 11, 2020
1 parent c3c78ab commit 9caf130
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ee/app/livechat-enterprise/server/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

0 comments on commit 9caf130

Please sign in to comment.