Fixing deployment issue.
This commit is contained in:
parent
f6a133e556
commit
afd642c60d
|
@ -38,7 +38,7 @@ async function storeDeploymentHistory(deployment) {
|
||||||
// theres only one deployment doc per app database
|
// theres only one deployment doc per app database
|
||||||
deploymentDoc = await db.get(DocumentTypes.DEPLOYMENTS)
|
deploymentDoc = await db.get(DocumentTypes.DEPLOYMENTS)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
deploymentDoc = { _id: appId, history: {} }
|
deploymentDoc = { _id: DocumentTypes.DEPLOYMENTS, history: {} }
|
||||||
}
|
}
|
||||||
|
|
||||||
const deploymentId = deploymentJSON._id
|
const deploymentId = deploymentJSON._id
|
||||||
|
|
Loading…
Reference in New Issue