mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
import config
This commit is contained in:
parent
f4db30e988
commit
5ac5c30fd6
2 changed files with 4 additions and 2 deletions
|
@ -1,8 +1,9 @@
|
|||
var MysqlInterface = require('sync-mysql');
|
||||
var config = require('../config.js');
|
||||
|
||||
class Mysql {
|
||||
constructor(config) {
|
||||
this.connection = new MysqlInterface(config);
|
||||
constructor(msConfig) {
|
||||
this.connection = new MysqlInterface(msConfig);
|
||||
}
|
||||
|
||||
exec(query) {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
const { db } = require("./databases");
|
||||
var config = require('../config.js');
|
||||
|
||||
class Sqlite {
|
||||
constructor(connection) {
|
||||
|
|
Loading…
Reference in a new issue