Browse Source

Création command nettoyer visitor et order #488

develop
Fab 2 years ago
parent
commit
153daea650
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      Repository/Order/OrderShopStore.php
  2. +2
    -2
      Repository/User/VisitorStore.php

+ 2
- 2
Repository/Order/OrderShopStore.php View File

@@ -670,7 +670,7 @@ class OrderShopStore extends AbstractStore
$query->filterByAlias(OrderStatusModel::$statusAliasAsCart);
$query->filterByUserIsNull();
$query->filterByVisitorIsNull();
dump($query->getQueryBuilder()->getDQL());
return $query->limit(100000)->find();
return $query->limit(50000)->find();
}
}

+ 2
- 2
Repository/User/VisitorStore.php View File

@@ -41,7 +41,7 @@ class VisitorStore extends AbstractStore

$query = $this->createDefaultQuery($query);
$query->filterByLastAccess($lastAccess);
// $query->filterByTotalVisit(1);
return $query->find();
$query->filterByTotalVisit(1);
return $query->limit(50000)->find();
}
}

Loading…
Cancel
Save