Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[fix] default

  • Loading branch information...
commit a41a480f243ced0bfe93f68eb42c326d0ce8aecf 1 parent 10c699f
@yawnt yawnt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jitsu/commands/databases.js
View
4 lib/jitsu/commands/databases.js
@@ -121,7 +121,7 @@ databases.create = function (requestedDatabaseType, requestedDatabaseName, callb
name: 'database name',
default: database.name
}, function(e, res) {
- database.name = res['database name'];
+ database.name = res['database name'] || database.name;
cb();
});
}
@@ -129,7 +129,7 @@ databases.create = function (requestedDatabaseType, requestedDatabaseName, callb
function getDBType(cb) {
jitsu.log.warn('Valid database types are: ' + 'couch'.magenta + ', ' + 'redis'.magenta +', or ' + 'mongo'.magenta);
jitsu.prompt.get('database type', function(e, res) {
- database.type = res['database type'];
+ database.type = res['database type'] || database.type;
cb();
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.