Linting #80

Merged
KevinMidboe merged 12 commits from linting into master 2018-02-07 13:24:43 +00:00
2 changed files with 9 additions and 8 deletions
Showing only changes of commit 272300249e - Show all commits

View File

@@ -1,5 +1,6 @@
const configuration = require('src/config/configuration').getInstance(); const configuration = require('src/config/configuration').getInstance();
const SqliteDatabase = require('src/database/sqliteDatabase'); const SqliteDatabase = require('src/database/sqliteDatabase');
const database = new SqliteDatabase(configuration.get('database', 'host')); const database = new SqliteDatabase(configuration.get('database', 'host'));
/** /**
@@ -9,7 +10,7 @@ const database = new SqliteDatabase(configuration.get('database', 'host'));
* If the tables already exists, it simply proceeds. * If the tables already exists, it simply proceeds.
*/ */
Promise.resolve() Promise.resolve()
.then(() => database.connect()) .then(() => database.connect())
.then(() => database.setUp()); .then(() => database.setUp());
module.exports = database; module.exports = database;