diff options
Diffstat (limited to 'install.js')
| -rw-r--r-- | install.js | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -13,28 +13,11 @@ username: 'admin', password: hash }, function() { - return console.log("Created admin user with password 'admin'"); + console.log("Created admin user with password 'admin'"); + return process.exit(); }); }); } }); - db.sismember("mts", "mt:rest", function(err, res) { - if (!res) { - db.hmset("mt:rest", { - code: "rest", - label: "Restaurant/Bar" - }, function() { - return db.sadd("mts", "mt:rest"); - }); - db.hmset("mt:coff", { - code: "rest", - label: "Coffee Shop" - }, function() { - return db.sadd("mts", "mt:coff"); - }); - return console.log("Added merchant types"); - } - }); - }).call(this); |
