open database into db

pull/24/head
lub 7 years ago
parent f056d93f38
commit fa38ea6c1a

@ -11,6 +11,8 @@ global.matrixClient = sdk.createClient({
userId: config.matrix.userid
});
const db = new sqlite3.Database(config.database);
//captures unhandled rejections for easier debugging
process.on('unhandledRejection', (reason) => {
console.log('Reason: ' + reason);