- Fix instant_win attribution
This commit is contained in:
parent
540f227a0e
commit
56d4c817c6
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ class EnterCodeController extends Controller
|
|||
}
|
||||
} else {
|
||||
// Gain d'un gros lot
|
||||
$instantWin = InstantWin::where([['appear_date', '<', now()], ['won', 0]])->orderByDesc('appear_date')->first();
|
||||
$instantWin = InstantWin::where([['appear_date', '<', now()], ['won', 0]])->orderBy('appear_date', 'ASC')->first();
|
||||
if ($instantWin) {
|
||||
$instantWin->won = 1;
|
||||
$instantWin->participation_id = $participation->id;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue