diff --git a/src/app/api/deploy/route.ts b/src/app/api/deploy/route.ts index 13a68fa..fdddf5f 100644 --- a/src/app/api/deploy/route.ts +++ b/src/app/api/deploy/route.ts @@ -1,7 +1,7 @@ import { NextRequest, NextResponse } from "next/server"; import testAuth from "../auth"; import { StatusCodes } from "http-status-codes"; -import { deployApp, getDeployments } from "@/core/deployment"; +import { deployApp } from "@/core/deployment"; import { Application } from "@/lib/types"; export async function POST(req: NextRequest): Promise { diff --git a/src/lib/dockship/deploy.ts b/src/lib/dockship/deploy.ts index 905132e..a060348 100644 --- a/src/lib/dockship/deploy.ts +++ b/src/lib/dockship/deploy.ts @@ -17,7 +17,7 @@ export async function getDeployments(): Promise { await axios.post(`http://${n.ip}:3000/api/get-deployments`, apps, { headers: { Authorization: `ApiKey ${n.key}` }, }) - ).data.apps + ).data.deployments ) ) ).flat();