diff --git a/src/report/ReportPoll.ts b/src/report/ReportPoll.ts index 6bedce4..3829ed2 100644 --- a/src/report/ReportPoll.ts +++ b/src/report/ReportPoll.ts @@ -37,9 +37,8 @@ export class ReportPoll { ) { } private schedulePoll() { - const self = this; this.timeout = setTimeout( - function() { self.getAbuseReports() }, + this.getAbuseReports.bind(this), 60_000 // a minute in milliseconds ); }