miss return, remove promise

This commit is contained in:
jesopo 2022-04-14 13:06:32 +00:00
parent 443b59c0a3
commit 722c9c3774

View File

@ -47,7 +47,7 @@ export class ReportPoll {
);
}
private async getAbuseReports(): Promise<any> {
private async getAbuseReports() {
let response_: {
event_reports: { room_id: string, event_id: string, sender: string, reason: string }[],
next_token: number | undefined
@ -61,6 +61,7 @@ export class ReportPoll {
} catch (ex) {
await this.mjolnir.logMessage(LogLevel.ERROR, "getAbuseReports", `failed to poll events: ${ex}`);
this.schedulePoll();
return;
}
const response = response_!;