async def get_logs(
    session: AsyncSession,
    limit: Optional[int] = 10,
    request_url: Optional[str] = None,
    response_status_code: Optional[int] = None,
    phone_number: Optional[str] = None,
):

    query = session.query(Log).limit(limit)

    if filter:
        if request_url:
            query = query.filter(Log.request_url == request_url)
        if response_status_code is not None:
            query = query(Log.response_status_code == response_status_code)
        if phone_number:
            query = query(Log.phone_number == phone_number)

    result = await query.all()

    return mapper.map_model_list_to_dto(result) is that correct? Can I use query with AsyncSession?