1
0
mirror of https://dev.s-ul.net/Galexion/MaiMaiDXNet.git synced 2024-11-12 04:20:46 +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 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');
var con = mysql.createConnection(ArtConnSettings)