From 1fa5eb6eb4de39916f2a2962fcb78403098bd6fd Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Tue, 19 Apr 2022 10:17:20 -0700 Subject: [PATCH] pull isCore from deployments --- core/src/routes/deployments.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/src/routes/deployments.ts b/core/src/routes/deployments.ts index 7c0e7fac0..b95adc166 100644 --- a/core/src/routes/deployments.ts +++ b/core/src/routes/deployments.ts @@ -1,8 +1,5 @@ import { Server } from "@monitor/types"; -import { - intoCollection, - DEPLOYMENT_OWNER_UPDATE, -} from "@monitor/util"; +import { intoCollection, DEPLOYMENT_OWNER_UPDATE } from "@monitor/util"; import { getContainerLog, getContainerStatus } from "@monitor/util-node"; import { FastifyInstance } from "fastify"; import fp from "fastify-plugin"; @@ -17,7 +14,7 @@ import { serverStatusPeriphery } from "../util/periphery/status"; async function getDeployments(app: FastifyInstance, server: Server) { const deployments = await app.deployments.find( { serverID: server._id }, - "name containerName serverID owners repo" + "name containerName serverID owners repo isCore" ); if (await serverStatusPeriphery(server)) { const status = server.isCore