fix path to new db location

This commit is contained in:
virus 2021-01-28 13:24:02 +01:00
parent 81fe19e298
commit 1a872694fb
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
const Database = require('better-sqlite3'); const Database = require('better-sqlite3');
const db = new Database('bot-node.db'); const db = new Database('data/bot-node.db');
const Jackd = require('jackd'); const Jackd = require('jackd');
const beanstalkd = new Jackd(); const beanstalkd = new Jackd();

View File

@ -1,7 +1,7 @@
const config = require('./config.json'); const config = require('./config.json');
const { DOMAIN, PRIVKEY_PATH, CERT_PATH, PORT_HTTP, PORT_HTTPS } = config; const { DOMAIN, PRIVKEY_PATH, CERT_PATH, PORT_HTTP, PORT_HTTPS } = config;
const Database = require('better-sqlite3'); const Database = require('better-sqlite3');
const db = new Database('bot-node.db'), const db = new Database('data/bot-node.db'),
Parser = require('rss-parser'), Parser = require('rss-parser'),
request = require('request'), request = require('request'),
crypto = require('crypto'), crypto = require('crypto'),