Selaa lähdekoodia

[Administration] Dashboard : optimisation (suppression count users)

refactoring
Guillaume Bourgeois 2 vuotta sitten
vanhempi
commit
b9b9af2b6d
1 muutettua tiedostoa jossa 1 lisäystä ja 3 poistoa
  1. +1
    -3
      backend/controllers/SiteController.php

+ 1
- 3
backend/controllers/SiteController.php Näytä tiedosto

@@ -117,6 +117,7 @@ class SiteController extends BackendController
*/
public function actionIndex()
{

// commandes
$optionDashboardNumberDistributions = Producer::getConfig('option_dashboard_number_distributions') ;
$dashboardNumberDistributions = $optionDashboardNumberDistributions ? $optionDashboardNumberDistributions : 3 ;
@@ -175,8 +176,6 @@ class SiteController extends BackendController
]);

// clients
$nbUsers = User::searchCount();

$usersArray = User::findBy()
->orderBy('created_at DESC')
->limit(5)
@@ -196,7 +195,6 @@ class SiteController extends BackendController
'distributionsArray' => $distributionsArray,
'ordersArray' => $ordersArray,
'usersArray' => $usersArray,
'nbUsers' => $nbUsers,
'usersNegativeCredit' => $usersNegativeCredit,
'producer' => $producer,
'productsCount' => $productsCount,

Loading…
Peruuta
Tallenna