Skip to content

Commit

Permalink
Update apps/meteor/app/livechat/server/business-hour/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Murtaza Patrawala <[email protected]>
  • Loading branch information
KevLehman and murtaza98 authored Jun 22, 2023
1 parent e4a7fbb commit 4922aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/meteor/app/livechat/server/business-hour/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Meteor.startup(async () => {

// Note: This shouldn't happen directly on login, but after the login process has already finished
// but meteor doesn't have "afterLogin" hooks
Accounts.onLogin(async ({ user }: { user: any }) =>
Accounts.onLogin(async ({ user }: { user: IUser }) =>
setTimeout(async () => {
user?.roles?.includes('livechat-agent') && !user?.roles?.includes('bot') && businessHourManager.onLogin(user._id);
}, 1000),
Expand Down

0 comments on commit 4922aef

Please sign in to comment.