Merge branch 'trunk'
This commit is contained in:
commit
c81160a4dd
1 changed files with 2 additions and 1 deletions
|
|
@ -151,6 +151,8 @@ class EnterCodeController extends Controller
|
|||
if ($instantWin) {
|
||||
$instantWin->won = 1;
|
||||
$instantWin->participation_id = $participation->id;
|
||||
//should save now to prevent next player win on the same winning moment
|
||||
$instantWin->save();
|
||||
$participation->instant_win_id = $instantWin->id;
|
||||
// Envoi du courrier Arcadia
|
||||
if ($instantWin->prize->arcadia_operation_code !== 0 && $instantWin->prize->arcadia_support_code !== 0) {
|
||||
|
|
@ -197,7 +199,6 @@ class EnterCodeController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
$instantWin->save();
|
||||
Mail::to(Auth::user()->email)->send(new PrizeWon(Auth::user(), $instantWin->prize, $settings));
|
||||
$mails = json_decode($settings->notification_emails);
|
||||
foreach ($mails as $mail) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue