fix (all): path and fs normalization.

This commit is contained in:
Rodrigo Rodriguez 2024-09-09 19:14:43 -03:00
parent c50d1f6e39
commit b4cb44698b

View file

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