diff --git a/pkg/models/task_reminder.go b/pkg/models/task_reminder.go index 2a44477fe..c52a55cf9 100644 --- a/pkg/models/task_reminder.go +++ b/pkg/models/task_reminder.go @@ -149,6 +149,7 @@ func getTaskUsersForTasks(s *xorm.Session, taskIDs []int64, cond builder.Cond) ( conditions := []builder.Cond{ builder.In("tasks.id", taskIDs), + builder.Eq{"users.status": user.StatusActive}, } if cond != nil { conditions = append(conditions, cond)