Skip to content

Commit

Permalink
use const
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Oct 10, 2024
1 parent d652727 commit c8ecd76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ async function adminRedactUserMessagesIn(
targetRooms: string[],
limit = 1000,
) {
let redactID: string;
const body = { limit: limit, rooms: targetRooms };
const redactEndpoint = `/_synapse/admin/v1/user/${userId}/redact`;
const response = await client.doRequest("GET", redactEndpoint, null, body);
redactID = response["redact_id"];
const redactID = response["redact_id"];
await managementRoom.logMessage(
LogLevel.INFO,
"utils#redactUserMessagesIn",
Expand Down

0 comments on commit c8ecd76

Please sign in to comment.