upd: move patch function and make note user always detail
This commit is contained in:
parent
1e02899de7
commit
a847e4d5cc
4 changed files with 4 additions and 15 deletions
|
|
@ -58,17 +58,6 @@ export class ApiAccountMastodon {
|
|||
}
|
||||
}
|
||||
|
||||
public async updateCredentials() {
|
||||
try {
|
||||
const data = await this.client.updateCredentials(this.request.body as any);
|
||||
return convertAccount(data.data);
|
||||
} catch (e: any) {
|
||||
/* console.error(e);
|
||||
console.error(e.response.data); */
|
||||
return e.response;
|
||||
}
|
||||
}
|
||||
|
||||
public async lookup() {
|
||||
try {
|
||||
const data = await this.client.search((this.request.query as any).acct, { type: 'accounts' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue