Fixing deployment issue.
This commit is contained in:
parent
f2c2ead3fc
commit
6aaef0e230
|
@ -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