浏览代码

BUG FIX: archived cards still sent out notification

Sam X. Chen 5 年之前
父节点
当前提交
8d7714760c
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;