mirror of
https://github.com/wekan/wekan.git
synced 2026-01-05 17:18:49 +01:00
Fixed build
This commit is contained in:
parent
8290dcb249
commit
4359f66ece
3 changed files with 9 additions and 9 deletions
|
|
@ -11,9 +11,9 @@ Meteor.publish('activities', (kind, id, limit, hideSystem) => {
|
|||
check(limit, Number);
|
||||
check(hideSystem, Boolean);
|
||||
|
||||
let 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},
|
||||
});
|
||||
});
|
||||
limit,
|
||||
sort: {createdAt: -1},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue