diff --git a/src/HttpController/Web/HistoryController.php b/src/HttpController/Web/HistoryController.php index 5a114881..9f31fb1b 100644 --- a/src/HttpController/Web/HistoryController.php +++ b/src/HttpController/Web/HistoryController.php @@ -59,7 +59,7 @@ public function createHistoryEntry(Request $request) : Response $this->movieApi->updateHistoryLocation($movieId, $userId, $newWatchDate, $locationId); if ($originalWatchDate == $newWatchDate) { - $this->movieApi->replaceHistoryForMovieByDate($movieId, $userId, $newWatchDate, $plays, $position, $comment); + $this->movieApi->replaceHistoryForMovieByDate($movieId, $userId, $newWatchDate, $plays, $position); return Response::create(StatusCode::createNoContent()); } @@ -67,7 +67,6 @@ public function createHistoryEntry(Request $request) : Response $this->movieApi->addPlaysForMovieOnDate($movieId, $userId, $newWatchDate, $plays, $position); $this->movieApi->deleteHistoryByIdAndDate($movieId, $userId, $originalWatchDate); - return Response::create(StatusCode::createNoContent()); }