Skip to content

Commit

Permalink
fix redaction call
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jan 22, 2025
1 parent e72d067 commit 0ba1f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function adminRedactUserMessagesIn(
) {
const body = { limit: limit, rooms: targetRooms };
const redactEndpoint = `/_synapse/admin/v1/user/${userId}/redact`;
const response = await client.doRequest("GET", redactEndpoint, null, body);
const response = await client.doRequest("POST", redactEndpoint, null, body);
const redactID = response["redact_id"];
await managementRoom.logMessage(
LogLevel.INFO,
Expand Down

0 comments on commit 0ba1f2f

Please sign in to comment.