mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
change report polling to read oldest first, so we paginate to end and wait (#353)
This commit is contained in:
parent
21aabc879a
commit
1e67eed30b
@ -68,7 +68,11 @@ export class ReportPoller {
|
|||||||
response_ = await this.mjolnir.client.doRequest(
|
response_ = await this.mjolnir.client.doRequest(
|
||||||
"GET",
|
"GET",
|
||||||
"/_synapse/admin/v1/event_reports",
|
"/_synapse/admin/v1/event_reports",
|
||||||
{ from: this.from.toString() }
|
{
|
||||||
|
// short for direction: forward; i.e. show newest last
|
||||||
|
dir: "f",
|
||||||
|
from: this.from.toString()
|
||||||
|
}
|
||||||
);
|
);
|
||||||
} 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}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user