remove admin_locale

This commit is contained in:
merdan 2022-04-15 12:38:10 +05:00
parent 7a55f7384f
commit ae0d7df821
2 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ class ProductRepository extends WProductRepository
$sortOptions = $this->getDefaultSortByOption();
$orderDirection = ! empty($sortOptions) ? $sortOptions[1] : 'asc';
}
DB::connection()->enableQueryLog();
if (isset($params['sort'])) {
$this->checkSortAttributeAndGenerateQuery($qb, $params['sort'], $orderDirection);
} else {
@ -153,6 +153,8 @@ class ProductRepository extends WProductRepository
}
}
Log::info(DB::getQueryLog());
if ($priceFilter = request('price')) {
$priceRange = explode(',', $priceFilter);
if (count($priceRange) > 0) {

View File

@ -9,7 +9,6 @@ use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Webkul\Attribute\Models\Attribute;
@ -657,7 +656,6 @@ class ProductRepository extends Repository
$query->orderBy('product_flat.created_at', $direction);
}
Log::info($query);
return $query;
}