server+client: update tag category api + fix formatting

This commit is contained in:
neobooru
2020-09-23 13:48:47 +02:00
parent 368372e36d
commit d2b6ecef4d
4 changed files with 8 additions and 8 deletions

View File

@ -78,9 +78,9 @@ class TagCategory extends events.EventTarget {
let promise = this._origName
? api.put(
uri.formatApiLink("tag-category", this._origName),
detail
)
uri.formatApiLink("tag-category", this._origName),
detail
)
: api.post(uri.formatApiLink("tag-categories"), detail);
return promise.then((response) => {