       deployment.completed == true -> resp(conn, :conflict, "Workflow has already completed")
       deployment.output != "[]" -> resp(conn, :conflict, "Workflow has already been started")
       true ->
-        payload = deployment
-                
         request = %OrchestratorRequest{}
         request = %{request | deployment: deployment}
         request = %{request | completed: nil}

       page = ProductDeployment
         |> where([p], p.product_id == ^product_id)
         |> order_by([p], desc: p.inserted_at)
         |> Repo.paginate(page: params["page"])

       deployments = page.entries
         |> Enum.map(&to_sendable(&1, @deployment_sendable_fields))

        |> json ResponseBodyFormatter.error_body(:not_found, "ProductDeployment")
      product ->
        if params["page"] == nil do 
          page_number = 1
        else
          page_number = Integer.parse(params["page"])
        end
