mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Try to fix prettier.
This commit is contained in:
parent
b0281e1941
commit
4567f08a0b
1 changed files with 13 additions and 15 deletions
|
|
@ -8,21 +8,19 @@ Meteor.publish('people', function(query, limit) {
|
||||||
|
|
||||||
const user = Users.findOne(this.userId);
|
const user = Users.findOne(this.userId);
|
||||||
if (user && user.isAdmin) {
|
if (user && user.isAdmin) {
|
||||||
return Users.find(
|
return Users.find(query, {
|
||||||
query,
|
limit,
|
||||||
{
|
sort: { createdAt: -1 },
|
||||||
limit,
|
fields: {
|
||||||
sort: { createdAt: -1 },
|
username: 1,
|
||||||
fields: {
|
'profile.fullname': 1,
|
||||||
username: 1,
|
isAdmin: 1,
|
||||||
'profile.fullname': 1,
|
emails: 1,
|
||||||
isAdmin: 1,
|
createdAt: 1,
|
||||||
emails: 1,
|
loginDisabled: 1,
|
||||||
createdAt: 1,
|
authenticationMethod: 1,
|
||||||
loginDisabled: 1,
|
},
|
||||||
authenticationMethod: 1,
|
});
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return [];
|
return [];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue