mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +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);
|
||||
if (user && user.isAdmin) {
|
||||
return Users.find(
|
||||
query,
|
||||
{
|
||||
limit,
|
||||
sort: { createdAt: -1 },
|
||||
fields: {
|
||||
username: 1,
|
||||
'profile.fullname': 1,
|
||||
isAdmin: 1,
|
||||
emails: 1,
|
||||
createdAt: 1,
|
||||
loginDisabled: 1,
|
||||
authenticationMethod: 1,
|
||||
},
|
||||
});
|
||||
return Users.find(query, {
|
||||
limit,
|
||||
sort: { createdAt: -1 },
|
||||
fields: {
|
||||
username: 1,
|
||||
'profile.fullname': 1,
|
||||
isAdmin: 1,
|
||||
emails: 1,
|
||||
createdAt: 1,
|
||||
loginDisabled: 1,
|
||||
authenticationMethod: 1,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue