mirror of
https://github.com/wekan/wekan.git
synced 2026-03-02 03:40:16 +01:00
Move every Users.find(idOrFirstObjectSelector, options) to the ReactiveCache (directory server/)
This commit is contained in:
parent
46840c9373
commit
6646b8638e
5 changed files with 23 additions and 15 deletions
|
|
@ -8,7 +8,7 @@ Meteor.publish('people', function(query, limit) {
|
|||
const user = ReactiveCache.getCurrentUser();
|
||||
|
||||
if (user && user.isAdmin) {
|
||||
ret = Users.find(query, {
|
||||
ret = ReactiveCache.getUsers(query, {
|
||||
limit,
|
||||
sort: { createdAt: -1 },
|
||||
fields: {
|
||||
|
|
@ -24,7 +24,8 @@ Meteor.publish('people', function(query, limit) {
|
|||
orgs: 1,
|
||||
teams: 1,
|
||||
},
|
||||
});
|
||||
},
|
||||
true);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue