Skip to content

Commit 8e65b8c

Browse files
committed
update invite test
1 parent e2bfd99 commit 8e65b8c

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/Api/Controllers/UsersInviteController.php

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,11 @@ public function processUserInvite(string $hash) : Response
195195
//move to DTO
196196
$newUser->password = null;
197197

198-
if (!defined('API_TESTS')) {
199-
$usersInvite->softDelete();
198+
$usersInvite->softDelete();
200199

201-
return $this->response([
202-
'user' => $newUser,
203-
'session' => $authInfo
204-
]);
205-
}
206-
207-
return $this->response($newUser);
200+
return $this->response([
201+
'user' => $newUser,
202+
'session' => $authInfo
203+
]);
208204
}
209205
}

0 commit comments

Comments
 (0)