Skip to content

Commit

Permalink
fix: break if deactivate user with no other room owner
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmohanty11 committed Mar 24, 2022
1 parent f79e7eb commit 8eb8eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/server/functions/setUserActiveStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function setUserActiveStatus(userId: string, active: boolean, confirmReli

if (shouldRemoveOrChangeOwner(chatSubscribedRooms) && !confirmRelinquish) {
const rooms = getUserSingleOwnedRooms(chatSubscribedRooms as []);
throw new Meteor.Error('user-last-owner', '', String(rooms));
throw new Meteor.Error('user-last-owner', '', rooms);
}

closeOmnichannelConversations(user, livechatSubscribedRooms);
Expand Down

0 comments on commit 8eb8eb6

Please sign in to comment.