def get_room(room_name: str): return Room.objects(room_name=room_name).first()
def check_room_exists(room_id: str): room = Room.objects(id=ObjectId(room_id)).first() if room: return True return False