Added support for relative date ranges in segments

This commit is contained in:
Andris Reinman 2016-06-01 16:36:24 +03:00
parent 9bd6db2624
commit a229f80e22
11 changed files with 169 additions and 14 deletions

View file

@ -87,8 +87,10 @@ module.exports.authenticate = (username, password, callback) => {
if (!result) {
return callback(null, false);
}
let user = tools.convertKeys(rows[0]);
return callback(null, {
id: rows[0].id,
id: user.id,
username
});
});