fix: Remove non-existent owner_type/owner_id columns from city_rooms queries
- Fix get_all_rooms() to not select owner_type/owner_id - Fix get_city_rooms_for_list() to not select owner_type/owner_id - Fix get_city_rooms_api() to use space_scope instead of owner_type - This fixes 500 error on /api/city/rooms endpoint
This commit is contained in:
@@ -1253,7 +1253,7 @@ async def get_city_rooms_api():
|
||||
"slug": room.get("slug"),
|
||||
"name": room.get("name"),
|
||||
"description": room.get("description"),
|
||||
"scope": room.get("owner_type", "city"),
|
||||
"scope": room.get("space_scope", "city"),
|
||||
"matrix_room_id": room.get("matrix_room_id"),
|
||||
"is_public": room.get("is_public", True),
|
||||
"room_role": room.get("room_role"),
|
||||
|
||||
Reference in New Issue
Block a user