Pārlūkot izejas kodu

BUG FIX: archived cards still sent out notification

Sam X. Chen 5 gadi atpakaļ
vecāks
revīzija
8d7714760c
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      models/cards.js

+ 1 - 0
models/cards.js

@@ -1558,6 +1558,7 @@ function cardRemover(userId, doc) {
 const findDueCards = days => {
 const findDueCards = days => {
   const seekDue = ($from, $to, activityType) => {
   const seekDue = ($from, $to, activityType) => {
     Cards.find({
     Cards.find({
+      archived: false,
       dueAt: { $gte: $from, $lt: $to },
       dueAt: { $gte: $from, $lt: $to },
     }).forEach(card => {
     }).forEach(card => {
       const username = Users.findOne(card.userId).username;
       const username = Users.findOne(card.userId).username;