Add support for MongoDB 3-8, detecting which one is in use.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-11 10:32:20 +03:00
parent 1f5a549589
commit 74ccfea570
11 changed files with 1650 additions and 7 deletions

View file

@ -1836,7 +1836,7 @@ if (Meteor.isServer) {
},
});
Accounts.onCreateUser((options, user) => {
const userCount = ReactiveCache.getUsers({}, {}, true).count();
const userCount = ReactiveCache.getUsers({}, {}, true).countDocuments();
user.isAdmin = userCount === 0;
if (user.services.oidc) {