Skip to content
Snippets Groups Projects
Unverified Commit cd86eb29 authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by Diego Sampaio
Browse files

fix: Seat counter including apps (#29489)

parent 90d310a3
No related branches found
No related tags found
No related merge requests found
---
'@rocket.chat/meteor': patch
---
Fix seats counter including apps
......@@ -2794,9 +2794,19 @@ export class UsersRaw extends BaseRaw {
// here
getActiveLocalUserCount() {
return Promise.all([
this.col.countDocuments({ active: true }),
this.col.countDocuments({ federated: true }),
this.col.countDocuments({ isRemote: true }),
this.col.countDocuments({
active: true,
type: {
$nin: ['app'],
},
roles: { $ne: ['guest'] },
}),
this.col.countDocuments({ federated: true, active: true }),
this.col.countDocuments({
isRemote: true,
active: true,
roles: { $ne: ['guest'] },
}),
]).then((results) => results.reduce((a, b) => a - b));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment