mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
Show cards in calendar
This commit is contained in:
parent
226d25ca94
commit
18467dfe40
5 changed files with 87 additions and 1 deletions
|
|
@ -284,6 +284,33 @@ Boards.helpers({
|
|||
|
||||
return Cards.find(query, projection);
|
||||
},
|
||||
|
||||
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,
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
Boards.mutations({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue