Skip to content

Commit

Permalink
ensuring 'workspace_id' is passed as int, during invite-processing
Browse files Browse the repository at this point in the history
Fixes #164
  • Loading branch information
pazzernick committed Nov 24, 2021
1 parent 8b3722c commit 9165b1f
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 9165b1f

Please sign in to comment.