Removed console log of table data.

This commit is contained in:
2018-03-06 21:24:18 +01:00
parent cffba202b0
commit 354b833375

View File

@@ -14,12 +14,10 @@ class SqliteDatabase {
* Connect to the database.
* @returns {Promise} succeeds if connection was established
*/
async connect() {
return Promise.resolve()
.then(() => {
this.connection = new sqlite3.Database(this.host);
this.connection.run('PRAGMA foreign_keys=on')
});
connect() {
let database = new sqlite3.Database(this.host);
this.connection = database;
return database;
}
/**
@@ -67,7 +65,6 @@ class SqliteDatabase {
if (err) {
reject(err);
}
console.log('rows', rows)
resolve(rows);
})
})