Merge branch 'trunk'

This commit is contained in:
Jérémy Munsch 2021-11-08 16:03:20 +01:00
commit 6deddae3aa
No known key found for this signature in database
GPG key ID: 55196BEE445F6049

View file

@ -173,7 +173,8 @@ class CustomerController extends Controller
case CustomerExportType::customer():
$page = 1;
/** @var \Illuminate\Database\Eloquent\Builder $req */
$req = CustomerInfo::where('brand_id', $request->brand);
$req = CustomerInfo::where('brand_id', $request->brand)
->where('opt_in', true);
$total = $req->count();
$pages = \ceil($total / $pagination);
do {