Skip to content

Commit 9037805

Browse files
authored
Switch into post for query channels (#73)
1 parent 9be08c1 commit 9037805

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stream_chat/async_chat/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async def query_channels(self, filter_conditions, sort=None, **options):
198198
params.update(
199199
{"filter_conditions": filter_conditions, "sort": self.normalize_sort(sort)}
200200
)
201-
return await self.get("channels", params={"payload": json.dumps(params)})
201+
return await self.post("channels", data=params)
202202

203203
async def create_channel_type(self, data):
204204
if "commands" not in data or not data["commands"]:

stream_chat/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def query_channels(self, filter_conditions, sort=None, **options):
193193
params.update(
194194
{"filter_conditions": filter_conditions, "sort": self.normalize_sort(sort)}
195195
)
196-
return self.get("channels", params={"payload": json.dumps(params)})
196+
return self.post("channels", data=params)
197197

198198
def create_channel_type(self, data):
199199
if "commands" not in data or not data["commands"]:

0 commit comments

Comments
 (0)