fix(all): Locale in Audio is dynamic.

This commit is contained in:
Rodrigo Rodriguez 2024-02-18 11:04:07 -03:00
parent 03f94d0931
commit 2305f81b28

View file

@ -113,7 +113,7 @@ export class GBServer {
process.on('uncaughtException', (err, p) => { process.on('uncaughtException', (err, p) => {
if (err !== null) { if (err !== null) {
err = err['e'] ? err['e'] : err; err = err['e'] ? err['e'] : err;
const msg = `${err['code']?err['code']:''} ${err.message?err.message:''} ${err['description']?err['description']:''}` const msg = `${err['code'] ? err['code'] : ''} ${err?.['response']?.['data'] ? err?.['response']?.['data']: ''} ${err.message ? err.message : ''} ${err['description'] ? err['description'] : ''}`
GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''} ${msg}`); GBLog.error(`UNCAUGHT_EXCEPTION: ${err.toString()} ${err['stack'] ? '\n' + err['stack'] : ''} ${msg}`);
} else { } else {
GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)'); GBLog.error('UNCAUGHT_EXCEPTION: Unknown error (err is null)');
@ -187,7 +187,7 @@ export class GBServer {
await deployer.deployPackages(core, server, GBServer.globals.appPackages); await deployer.deployPackages(core, server, GBServer.globals.appPackages);
await core.syncDatabaseStructure(); await core.syncDatabaseStructure();
if (runOnce){ if (runOnce) {
await core.saveInstance(GBServer.globals.bootInstance); await core.saveInstance(GBServer.globals.bootInstance);
} }
@ -345,7 +345,7 @@ export class GBServer {
// Serve the swagger file // Serve the swagger file
app.get(`/${SWAGGER_FILE_NAME}`, (req, res) => { app.get(`/${SWAGGER_FILE_NAME}`, (req, res) => {
res.sendFile(path.join(process.env.PWD,SWAGGER_FILE_NAME)); res.sendFile(path.join(process.env.PWD, SWAGGER_FILE_NAME));
}); });
} }
} }