BUG FIX: archived cards still sent out notification

This commit is contained in:
Sam X. Chen 2019-09-25 11:26:46 -04:00
parent a37723f8a4
commit 8d7714760c

View file

@ -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;