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:
Apple
2025-12-05 02:52:03 -08:00
parent ad3026e32d
commit 72b76bf29f
2 changed files with 3 additions and 3 deletions

View File

@@ -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"),