fix: scopes downloads and monitors to users
This commit is contained in:
@@ -22,7 +22,7 @@ readonly class AddMonitorHandler implements HandlerInterface
|
||||
|
||||
public function handle(CommandInterface $command): ResultInterface
|
||||
{
|
||||
$user = $this->userRepository->findOneBy(['email' => $command->userEmail]);
|
||||
$user = $this->userRepository->find($command->userId);
|
||||
$monitor = (new Monitor())
|
||||
->setUser($user)
|
||||
->setTmdbId($command->tmdbId)
|
||||
|
||||
Reference in New Issue
Block a user