fix: await all results on favourites and reblogged
This commit is contained in:
parent
43f27a639f
commit
90b666e626
2 changed files with 3 additions and 5 deletions
|
|
@ -98,9 +98,7 @@ export class ApiAccountMastodon {
|
|||
public async getStatuses() {
|
||||
try {
|
||||
const data = await this.client.getAccountStatuses((this.request.params as any).id, argsToBools(limitToInt(this.request.query as any)));
|
||||
const a = await Promise.all(data.data.map(async (status) => await this.mastoconverter.convertStatus(status)));
|
||||
console.error(a);
|
||||
return a;
|
||||
return await Promise.all(data.data.map(async (status) => await this.mastoconverter.convertStatus(status)));
|
||||
} catch (e: any) {
|
||||
console.error(e);
|
||||
console.error(e.response.data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue