rector: arrrrr
This commit is contained in:
@@ -31,10 +31,9 @@ class TeamInvitation extends Model
|
||||
$diff = $createdAt->diffInDays(now());
|
||||
if ($diff <= config('constants.invitation.link.expiration_days')) {
|
||||
return true;
|
||||
} else {
|
||||
$this->delete();
|
||||
|
||||
return false;
|
||||
}
|
||||
$this->delete();
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user