Skip to content

Commit

Permalink
fixed initial version on cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
githubsaturn committed Dec 27, 2017
1 parent 6f7f1bb commit c6e9e4b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions app-backend/src/datastore/DataStoreImpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ class DataStore {

getImageName(authObj, appName, version) {

if (version === 0) {
version = '0';
}

let authPrefix = '';

if (authObj) {
Expand Down Expand Up @@ -428,12 +432,12 @@ class DataStore {
.then(function (appPushWebhookRepoInfo) {

instanceCount = Number(instanceCount);

if (instanceCount >= 0) {
app.instanceCount = instanceCount;
}


if (instanceCount >= 0) {
app.instanceCount = instanceCount;
}


app.notExposeAsWebApp = !!notExposeAsWebApp;
app.nodeId = nodeId;

Expand Down

0 comments on commit c6e9e4b

Please sign in to comment.