summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-09-25 20:51:51 +0300
committerGitHub <noreply@github.com>2019-09-25 20:51:51 +0300
commit814e264521addee62fee40d1357c706688d27119 (patch)
tree79e3859de150a9abddaf59ad4bc94f67603745b6 /models/cards.js
parent1d8633e7e6bc59982395858d0a60b2648c4a5623 (diff)
parentd5cff1ec48bf9ab13a32576e7495ae54c3d2c0f7 (diff)
downloadwekan-814e264521addee62fee40d1357c706688d27119.tar.gz
wekan-814e264521addee62fee40d1357c706688d27119.tar.bz2
wekan-814e264521addee62fee40d1357c706688d27119.zip
Merge pull request #2720 from whowillcare/master
if username contains space, @ functions will fail at certain point
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 1414f6d7..d30baaf1 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1558,6 +1558,7 @@ function cardRemover(userId, doc) {
const findDueCards = days => {
const seekDue = ($from, $to, activityType) => {
Cards.find({
+ archived: false,
dueAt: { $gte: $from, $lt: $to },
}).forEach(card => {
const username = Users.findOne(card.userId).username;