Skip to content

Commit 77fe190

Browse files
committed
CON-337-fix(remote-rooms): return all rooms when there is no location
1 parent e3c4b3c commit 77fe190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/room/schema_query.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ def resolve_all_rooms(self, info, **kwargs):
280280
def resolve_all_remote_rooms(self, info, return_all=None):
281281
page_token = None
282282
filter = map_remote_room_location_to_filter()
283-
location = 'all' if return_all else get_user_from_db().location
283+
location = get_user_from_db().location
284+
location = 'all' if not filter.get(location) else location
284285
remote_rooms = []
285286
while True:
286287
calendar_list = get_google_api_calendar_list(pageToken=page_token)

0 commit comments

Comments
 (0)