diff --git a/.gitignore b/.gitignore index 9bb2800..5e7ced7 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ phpunit.phar /.settings .env.*.php .env.php +bin diff --git a/src/Mpociot/Teamwork/Events/UserInvitedToTeam.php b/src/Mpociot/Teamwork/Events/UserInvitedToTeam.php index 0f2aa6a..629847a 100644 --- a/src/Mpociot/Teamwork/Events/UserInvitedToTeam.php +++ b/src/Mpociot/Teamwork/Events/UserInvitedToTeam.php @@ -32,6 +32,6 @@ public function getInvite() */ public function getTeamId() { - return $this->team_id; + return $this->invite->team_id; } } \ No newline at end of file