From 6aaef0e230018e99d69f0b9a833efcf09fb33686 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 14 Jul 2021 17:51:35 +0100 Subject: [PATCH] Fixing deployment issue. --- packages/server/src/api/controllers/deploy/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/deploy/index.js b/packages/server/src/api/controllers/deploy/index.js index 4125f04438..4608ca6342 100644 --- a/packages/server/src/api/controllers/deploy/index.js +++ b/packages/server/src/api/controllers/deploy/index.js @@ -38,7 +38,7 @@ async function storeDeploymentHistory(deployment) { // theres only one deployment doc per app database deploymentDoc = await db.get(DocumentTypes.DEPLOYMENTS) } catch (err) { - deploymentDoc = { _id: appId, history: {} } + deploymentDoc = { _id: DocumentTypes.DEPLOYMENTS, history: {} } } const deploymentId = deploymentJSON._id