Add test coverage for API key generation and deletion
This commit is contained in:
parent
7a5f7b99a7
commit
a81f6882f7
2 changed files with 222 additions and 0 deletions
|
@ -103,6 +103,7 @@ class ApiKeyController extends ClientApiController
|
|||
public function delete(ClientApiRequest $request, string $identifier)
|
||||
{
|
||||
$response = $this->repository->deleteWhere([
|
||||
'key_type' => ApiKey::TYPE_ACCOUNT,
|
||||
'user_id' => $request->user()->id,
|
||||
'identifier' => $identifier,
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue