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. *