Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
berkut1 committed Jun 11, 2024
1 parent 52d8270 commit 6bd3f5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Model/User/UseCase/Create/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function handle(Command $command): void

$role = new Role($command->role);
if(!$role->isUser()){
$user->changeRole(new Role($command->role));
$user->changeRole($role);
}

$this->users->add($user);
Expand Down
2 changes: 1 addition & 1 deletion src/Model/User/UseCase/SignUp/Manual/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function handle(Command $command): void

$role = new Role($command->role);
if(!$role->isUser()){
$user->changeRole(new Role($command->role));
$user->changeRole($role);
}

$this->users->add($user);
Expand Down

0 comments on commit 6bd3f5e

Please sign in to comment.