”2016-05-26”

This commit is contained in:
Martin Donnelly 2016-05-26 09:38:02 +01:00
parent ff92d17b59
commit 378eb9d5c6

View File

@ -13,32 +13,17 @@ var exec = require('child_process').exec;
function addUsers() { function addUsers() {
'use strict'; 'use strict';
dbAccount.addNewAccount({ dbAccount.addNewAccount({
username: 'Martin ', password: 'MPReoa43', email: 'martind2000@gmail.com' username: 'Default', password: 'password', email: 'm@g.com'
}) })
.then(function(data) { .then(function(data) {
console.log(data); console.log(data);
return 'DONE';
dbAccount.addNewAccount({ })
username: 'Default', password: 'password', email: 'm@g.com' .catch(function(err) {
}) console.error(err);
.then(function(data) { return -1;
console.log(data); });
return 'DONE';
})
.catch(function(err) {
console.error(err);
return -1;
});
})
.catch(function(err) {
console.error(err);
return -1;
});
} }