Merge pull request #357 from githubertus/patch-1

Tickets Sold and Sales Volume charts working
This commit is contained in:
Sam Bell 2018-04-25 08:16:17 +01:00 committed by GitHub
commit 47e9aaf4b0
1 changed files with 1 additions and 1 deletions

View File

@ -548,7 +548,7 @@ class EventCheckoutController extends Controller
/*
* Update the event stats
*/
$event_stats = EventStats::firstOrNew([
$event_stats = EventStats::updateOrCreate([
'event_id' => $event_id,
'date' => DB::raw('CURRENT_DATE'),
]);