Skip to content

Commit d63e323

Browse files
author
Max Klyga
committed
Fix deactivation parameters getting passed as url params instead of json body
1 parent 4f47b5d commit d63e323

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stream_chat/__pkg__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__author__ = "Tommaso Barbugli"
22
__copyright__ = "Copyright 2019, Stream.io, Inc"
3-
__version__ = "0.4.1"
3+
__version__ = "0.4.2"
44
__maintainer__ = "Tommaso Barbugli"
55
__email__ = "[email protected]"
66
__status__ = "Production"

stream_chat/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def delete_user(self, user_id, **options):
109109
return self.delete("users/{}".format(user_id), options)
110110

111111
def deactivate_user(self, user_id, **options):
112-
return self.post("users/{}/deactivate".format(user_id), options)
112+
return self.post("users/{}/deactivate".format(user_id), data=options)
113113

114114
def export_user(self, user_id, **options):
115115
return self.get("users/{}/export".format(user_id), options)

0 commit comments

Comments
 (0)