Skip to content

Commit

Permalink
Merge pull request #179 from pazzernick/bugfix-164
Browse files Browse the repository at this point in the history
ensuring 'workspace_id' is passed as int, during invite-processing
  • Loading branch information
JonoB authored Nov 26, 2021
2 parents 8b3722c + 9165b1f commit 7ee9866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/Workspaces/AcceptInvitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(AddWorkspaceMember $addWorkspaceMember)
*/
public function handle(User $user, Invitation $invitation): bool
{
$workspace = $this->resolveWorkspace($invitation->workspace_id);
$workspace = $this->resolveWorkspace(intval($invitation->workspace_id));

if (!$workspace) {
throw new RuntimeException("Invalid workspace ID encountered: {$invitation->workspace_id}");
Expand Down

0 comments on commit 7ee9866

Please sign in to comment.