1
0
mirror of https://dev.s-ul.net/Galexion/MaiMaiDXNet.git synced 2024-11-27 22:00:49 +01:00

Final Change to prevent DXMemorialImageDirectory from erroring out server

This commit is contained in:
Galexion 2023-07-16 23:01:19 -04:00
parent 7ae51a2895
commit deddb1a039

View File

@ -1,6 +1,9 @@
const { serverType, ArtConnSettings, DXMemorialImageDirectory } = require('./config.json'); const { serverType, ArtConnSettings, DXMemorialImageDirectory } = require('./config.json');
const sqlite3 = require('sqlite3').verbose(); const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database(DXMemorialImageDirectory + '\\db.sqlite'); var db = undefined;
if (serverType === 0) {
db = new sqlite3.Database(DXMemorialImageDirectory + '\\db.sqlite');
}
const mysql = require('mysql'); const mysql = require('mysql');
var con = mysql.createConnection(ArtConnSettings) var con = mysql.createConnection(ArtConnSettings)