Fixing deployment issue.

This commit is contained in:
mike12345567 2021-07-14 17:51:35 +01:00
parent f6a133e556
commit afd642c60d
1 changed files with 1 additions and 1 deletions

View File

@ -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