mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
miss return, remove promise
This commit is contained in:
parent
443b59c0a3
commit
722c9c3774
@ -47,7 +47,7 @@ export class ReportPoll {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async getAbuseReports(): Promise<any> {
|
private async getAbuseReports() {
|
||||||
let response_: {
|
let response_: {
|
||||||
event_reports: { room_id: string, event_id: string, sender: string, reason: string }[],
|
event_reports: { room_id: string, event_id: string, sender: string, reason: string }[],
|
||||||
next_token: number | undefined
|
next_token: number | undefined
|
||||||
@ -61,6 +61,7 @@ export class ReportPoll {
|
|||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
await this.mjolnir.logMessage(LogLevel.ERROR, "getAbuseReports", `failed to poll events: ${ex}`);
|
await this.mjolnir.logMessage(LogLevel.ERROR, "getAbuseReports", `failed to poll events: ${ex}`);
|
||||||
this.schedulePoll();
|
this.schedulePoll();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = response_!;
|
const response = response_!;
|
||||||
|
Loading…
Reference in New Issue
Block a user