Explorar o código

BUG FIX: archived cards still sent out notification

Sam X. Chen %!s(int64=5) %!d(string=hai) anos
pai
achega
8d7714760c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      models/cards.js

+ 1 - 0
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;