Fix alert
This commit is contained in:
parent
56b2f71192
commit
b49772791f
1 changed files with 2 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ class Kernel extends ConsoleKernel
|
|||
$couponDiffusionGlobal = array();
|
||||
$sendGlobal = false;
|
||||
foreach ($sites as $site) { // ---- Pour chaque site
|
||||
$campagnes = Campagne::where(['camp_siteId' => $site->id])->get();
|
||||
$campagnes = Campagne::where(['camp_siteId' => $site->site_id])->get();
|
||||
foreach ($campagnes as $campagne) {
|
||||
$sendMail = false;
|
||||
$users = array();
|
||||
|
|
@ -82,6 +82,7 @@ class Kernel extends ConsoleKernel
|
|||
$users[$notification->notif_id] = (object)$userObject;
|
||||
}
|
||||
}
|
||||
$sendMail = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue