mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
Make directories if needed for the databases
This commit is contained in:
@@ -7,6 +7,9 @@ let options = {
|
|||||||
fileMustExist: !config.createDatabaseIfNotExist
|
fileMustExist: !config.createDatabaseIfNotExist
|
||||||
};
|
};
|
||||||
|
|
||||||
|
fs.mkdirSync(config.db);
|
||||||
|
fs.mkdirSync(config.db);
|
||||||
|
|
||||||
var db = new Sqlite3(config.db, options);
|
var db = new Sqlite3(config.db, options);
|
||||||
var privateDB = new Sqlite3(config.privateDB, options);
|
var privateDB = new Sqlite3(config.privateDB, options);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user