mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-01 13:16:42 +00:00
Improved ShlinkApiClient test
This commit is contained in:
@@ -57,7 +57,7 @@ export class ShlinkApiClient {
|
||||
deleteTags = tags =>
|
||||
this._performRequest('/tags', 'DELETE', { tags })
|
||||
.then(() => ({ tags }))
|
||||
.catch(e => this._handleAuthError(e, this.deleteTag, []));
|
||||
.catch(e => this._handleAuthError(e, this.deleteTags, [tags]));
|
||||
|
||||
editTag = (oldName, newName) =>
|
||||
this._performRequest('/tags', 'PUT', {}, { oldName, newName })
|
||||
|
||||
Reference in New Issue
Block a user