Merge pull request #1649 from nextcloud/bugfix/1094/deleted-card-notification
Do not get deleted cards when fetching overdue for notifications
This commit is contained in:
@@ -143,7 +143,7 @@ class CardMapper extends DeckMapper implements IPermissionMapper {
|
||||
}
|
||||
|
||||
public function findOverdue() {
|
||||
$sql = 'SELECT id,title,duedate,notified from `*PREFIX*deck_cards` WHERE duedate < NOW() AND NOT archived';
|
||||
$sql = 'SELECT id,title,duedate,notified from `*PREFIX*deck_cards` WHERE duedate < NOW() AND NOT archived AND deleted_at = 0';
|
||||
return $this->findEntities($sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user