From 378eb9d5c63db883207b289e9fce120d41684e7f Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Thu, 26 May 2016 09:38:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9D2016-05-26=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- O-BrandServer/dbconfig.js | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) diff --git a/O-BrandServer/dbconfig.js b/O-BrandServer/dbconfig.js index 3051975..21e4ff7 100644 --- a/O-BrandServer/dbconfig.js +++ b/O-BrandServer/dbconfig.js @@ -13,32 +13,17 @@ var exec = require('child_process').exec; function addUsers() { 'use strict'; dbAccount.addNewAccount({ - username: 'Martin ', password: 'MPReoa43', email: 'martind2000@gmail.com' - }) - .then(function(data) { - console.log(data); + username: 'Default', password: 'password', email: 'm@g.com' + }) + .then(function(data) { + console.log(data); - - dbAccount.addNewAccount({ - username: 'Default', password: 'password', email: 'm@g.com' - }) - .then(function(data) { - console.log(data); - - return 'DONE'; - }) - .catch(function(err) { - console.error(err); - return -1; - }); - - - - }) - .catch(function(err) { - console.error(err); - return -1; - }); + return 'DONE'; + }) + .catch(function(err) { + console.error(err); + return -1; + }); }