Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Aug 22, 2024
1 parent 42ae397 commit e485c28
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HttpController/Web/HistoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,14 @@ 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());
}

$this->movieApi->addPlaysForMovieOnDate($movieId, $userId, $newWatchDate, $plays, $position);
$this->movieApi->deleteHistoryByIdAndDate($movieId, $userId, $originalWatchDate);


return Response::create(StatusCode::createNoContent());
}

Expand Down

0 comments on commit e485c28

Please sign in to comment.