Переименования
This commit is contained in:
@@ -202,8 +202,8 @@ class Api {
|
||||
}
|
||||
}
|
||||
|
||||
async search(query) {
|
||||
const response = await this.request({action: 'search', query});
|
||||
async authorSearch(query) {
|
||||
const response = await this.request({action: 'author-search', query});
|
||||
|
||||
if (response.error) {
|
||||
throw new Error(response.error);
|
||||
|
||||
@@ -289,7 +289,7 @@ class AuthorList extends BaseList {
|
||||
})();
|
||||
|
||||
try {
|
||||
const result = await this.api.search(query);
|
||||
const result = await this.api.authorSearch(query);
|
||||
|
||||
this.list.queryFound = result.author.length;
|
||||
this.list.totalFound = result.totalFound;
|
||||
|
||||
Reference in New Issue
Block a user