diff --git a/pkg/models/task_overdue_reminder.go b/pkg/models/task_overdue_reminder.go index 288906f12..6a77682d3 100644 --- a/pkg/models/task_overdue_reminder.go +++ b/pkg/models/task_overdue_reminder.go @@ -37,9 +37,8 @@ func getUndoneOverdueTasks(s *xorm.Session, now time.Time) (usersWithTasks map[i var tasks []*Task err = s. - Where("due_date is not null AND due_date < ? AND projects.is_archived = false AND namespaces.is_archived = false", nextMinute.Add(time.Hour*14).Format(dbTimeFormat)). + Where("due_date is not null AND due_date < ? AND projects.is_archived = false", nextMinute.Add(time.Hour*14).Format(dbTimeFormat)). Join("LEFT", "projects", "projects.id = tasks.project_id"). - Join("LEFT", "namespaces", "projects.namespace_id = namespaces.id"). And("done = false"). Find(&tasks) if err != nil {