Merge branch 'devel' into nested-tasks

This commit is contained in:
Nicu Tofan 2018-06-28 17:00:35 +03:00
commit 3eba6ef285
No known key found for this signature in database
GPG key ID: 7EE66E95E64FD0B7
65 changed files with 791 additions and 103 deletions

View file

@ -369,6 +369,33 @@ Boards.helpers({
}
return result;
},
cardsInInterval(start, end) {
return Cards.find({
$or: [
{
startAt: {
$lte: start,
}, endAt: {
$gte: start,
},
}, {
startAt: {
$lte: end,
}, endAt: {
$gte: end,
},
}, {
startAt: {
$gte: start,
}, endAt: {
$lte: end,
},
},
],
});
},
});