From eb69cc02e54420ccc812355334c46f20b1f067f7 Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sat, 3 Jan 2026 21:36:33 +0100 Subject: [PATCH] Fixed getDeployments --- src/app/api/deploy/route.ts | 2 +- src/lib/dockship/deploy.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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();