Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix typos in purge api & doc
Browse files Browse the repository at this point in the history
* It's supposed to be purge_local_events, not ..._history
* Fix the doc to have valid json
  • Loading branch information
richvdh committed Feb 13, 2018
1 parent 4d09366 commit 8fd1a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/admin_api/purge_history_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ To delete local events as well, set ``delete_local_events`` in the body:
.. code:: json
{
"delete_local_events": True,
"delete_local_events": true
}
4 changes: 1 addition & 3 deletions synapse/rest/client/v1/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ def on_POST(self, request, room_id, event_id):

body = parse_json_object_from_request(request, allow_empty_body=True)

delete_local_events = bool(
body.get("delete_local_history", False)
)
delete_local_events = bool(body.get("delete_local_events", False))

yield self.handlers.message_handler.purge_history(
room_id, event_id,
Expand Down

0 comments on commit 8fd1a32

Please sign in to comment.