From 48feb920ce8acc07adb50bf1b68ec4bd3e67a062 Mon Sep 17 00:00:00 2001 From: Ruben Date: Thu, 3 Nov 2016 18:04:31 +0100 Subject: [PATCH] hotfix bonus --- src/Api/ScoreControllerProvider.php | 3 ++- src/Models/Game.php | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Api/ScoreControllerProvider.php b/src/Api/ScoreControllerProvider.php index 50dc20e..e719dfc 100644 --- a/src/Api/ScoreControllerProvider.php +++ b/src/Api/ScoreControllerProvider.php @@ -93,7 +93,8 @@ class ScoreControllerProvider implements ControllerProviderInterface $hit->setTarget($target); - $hit->setScore($data_hit['score']); + // fix until bonus is separately saved + $hit->setScore($data_hit['score'] + $data_hit['bonus']); // attributes $hit->getAttributes()->setGlasses($data_hit['glasses']); diff --git a/src/Models/Game.php b/src/Models/Game.php index f9db698..afaf53d 100644 --- a/src/Models/Game.php +++ b/src/Models/Game.php @@ -152,8 +152,6 @@ class Game return $this->createdAt; } - - /** * Sets the value of user. *