Skip to content

Commit e72029b

Browse files
feat: Fix QueryReminders to use filter parameter instead of filter_conditions
1 parent b9b7837 commit e72029b

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
@@ -965,7 +965,7 @@ async def query_reminders(
965965
:return: API response with reminders
966966
"""
967967
params = options.copy()
968-
params["filter_conditions"] = filter_conditions or {}
968+
params["filter"] = filter_conditions or {}
969969
params["sort"] = sort or [{"field": "remind_at", "direction": 1}]
970970
params["user_id"] = user_id
971971
return await self.post("reminders/query", data=params)

stream_chat/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def query_reminders(
919919
:return: API response with reminders
920920
"""
921921
params = options.copy()
922-
params["filter_conditions"] = filter_conditions or {}
922+
params["filter"] = filter_conditions or {}
923923
params["sort"] = sort or [{"field": "remind_at", "direction": 1}]
924924
params["user_id"] = user_id
925925
return self.post("reminders/query", data=params)

0 commit comments

Comments
 (0)