mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Create command to rename API keys
This commit is contained in:
@@ -87,6 +87,9 @@ readonly class ApiKeyService implements ApiKeyServiceInterface
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
* @todo This method should be transactional and to a SELECT ... FROM UPDATE when checking if the new name exists,
|
||||
* to avoid a race condition where the method is called twice in parallel for a new name that doesn't exist,
|
||||
* causing two API keys to end up with the same name.
|
||||
*/
|
||||
public function renameApiKey(Renaming $apiKeyRenaming): ApiKey
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user