From e4c4d0e3d7dc7be7ac233cd6c9b90ae92fb1a5b3 Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 17 Jul 2018 02:43:31 +0000 Subject: [server] Fixed eslint errors. (Standard ESLint is used) --- server/api/clients.js | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'server/api/clients.js') diff --git a/server/api/clients.js b/server/api/clients.js index 53aeb9d..f7fe455 100644 --- a/server/api/clients.js +++ b/server/api/clients.js @@ -1,20 +1,20 @@ /* global __appdir */ -var path = require('path'); -var db = require(path.join(__appdir, 'lib', 'sequelize')); +var path = require('path') +var db = require(path.join(__appdir, 'lib', 'sequelize')) module.exports = { - get: function(req, res) { - //db.sequelize.authenticate() - //.then(() => { console.log('Connection has been established successfully.'); }) - //.catch(err => { console.error('Unable to connect to the database:', err); }); - - //db.users2.create({ username: "wasd", password: "wasd", email: "w@a.de", name: "wa"}); - db.users2.findOne({ where: { username: 'wasd' } }).then(user => { - console.log(user.get('username')); - }); - res.end(); - }, - post: function(req, res) { - - } -} \ No newline at end of file + get: function (req, res) { + // db.sequelize.authenticate() + // .then(() => { console.log('Connection has been established successfully.'); }) + // .catch(err => { console.error('Unable to connect to the database:', err); }); + + // db.users2.create({ username: "wasd", password: "wasd", email: "w@a.de", name: "wa"}); + db.users2.findOne({ where: { username: 'wasd' } }).then(user => { + console.log(user.get('username')) + }) + res.end() + }, + post: function (req, res) { + + } +} -- cgit v1.2.3-55-g7522