def METHOD_NAME(project_id: int) -> CampaignListDTO:
    """Gets all the campaigns for a specified project"""
    # Test if project exists
    ProjectService.get_project_by_id(project_id)
    query = (
        Campaign.query.join(campaign_projects)
        .filter(campaign_projects.c.project_id == project_id)
        .all()
    )
    return Campaign.campaign_list_as_dto(query)