fixed: DBGate cannot execute any queries and the process is killed #1195

This commit is contained in:
SPRINX0\prochazka
2025-08-29 08:39:19 +02:00
parent c913929ff9
commit 4a32dfc71b

View File

@@ -5,6 +5,7 @@ const moment = require('moment');
const path = require('path');
const { logsdir, setLogsFilePath, getLogsFilePath } = require('./utility/directories');
const currentVersion = require('./currentVersion');
const _ = require('lodash');
const logger = getLogger('apiIndex');
@@ -68,7 +69,7 @@ function configureLogger() {
}
const additionals = {};
const finalMsg =
msg.msg && msg.msg.match(/^DBGM-\d\d\d\d\d/)
_.isString(msg.msg) && msg.msg.match(/^DBGM-\d\d\d\d\d/)
? {
...msg,
msg: msg.msg.substring(10).trimStart(),