diff --git a/lib/cli/commands/db.js b/lib/cli/commands/db.js index 4822f1f..882f829 100644 --- a/lib/cli/commands/db.js +++ b/lib/cli/commands/db.js @@ -23,11 +23,10 @@ exports.create = function (name, type, storage) { * List the databases on the server. */ exports.list = function () { - console.log('The following databases exist on the server:'); return this.server.list() .then(function (dbs) { - Object.keys(dbs).forEach(function (name) { - console.log('\t\t' + name); + dbs.forEach(function (db) { + console.log(db.name); }); }); };