fix (all): path and fs normalization.

This commit is contained in:
Rodrigo Rodriguez 2024-09-09 19:14:43 -03:00
parent 2eb6137f80
commit 49deb3e487

View file

@ -32,6 +32,7 @@
import { GBLog } from 'botlib'; import { GBLog } from 'botlib';
import * as en from 'dotenv-extended'; import * as en from 'dotenv-extended';
import path from 'path';
/** /**
* @fileoverview General Bots server core. * @fileoverview General Bots server core.
@ -103,7 +104,7 @@ export class GBConfigService {
value = undefined; value = undefined;
break; break;
case 'STORAGE_LIBRARY': case 'STORAGE_LIBRARY':
value = `${process.env.PWD}/templates`; value = path.join(process.env.PWD, 'templates');
break; break;
case 'BOT_ID': case 'BOT_ID':
value = 'default'; value = 'default';