mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Prettier & eslint project style update
This commit is contained in:
parent
a0a482aa8e
commit
3eb4d2c341
116 changed files with 6216 additions and 5240 deletions
|
|
@ -4,16 +4,21 @@
|
|||
// We use this publication to paginate for these two publications.
|
||||
|
||||
Meteor.publish('activities', (kind, id, limit, hideSystem) => {
|
||||
check(kind, Match.Where((x) => {
|
||||
return ['board', 'card'].indexOf(x) !== -1;
|
||||
}));
|
||||
check(
|
||||
kind,
|
||||
Match.Where(x => {
|
||||
return ['board', 'card'].indexOf(x) !== -1;
|
||||
}),
|
||||
);
|
||||
check(id, String);
|
||||
check(limit, Number);
|
||||
check(hideSystem, Boolean);
|
||||
|
||||
const selector = (hideSystem) ? {$and: [{activityType: 'addComment'}, {[`${kind}Id`]: id}]} : {[`${kind}Id`]: id};
|
||||
const selector = hideSystem
|
||||
? { $and: [{ activityType: 'addComment' }, { [`${kind}Id`]: id }] }
|
||||
: { [`${kind}Id`]: id };
|
||||
return Activities.find(selector, {
|
||||
limit,
|
||||
sort: {createdAt: -1},
|
||||
sort: { createdAt: -1 },
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue