open database into db

master
lub 7 years ago
parent 7a1761f3fc
commit 7309245a53

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