fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 60a9e2f7e5 - Show all commits

View file

@ -552,7 +552,7 @@ export class GBMinService {
await this.adminService.setValue(instance.instanceId,
`${tokenName}expiresOn`, token['expiresOn'] ?
token['expiresOn'].toString():
new Date (Date.now() + token['expires_in']));
new Date (Date.now() + token['expires_in']).toString());
await this.adminService.setValue(instance.instanceId, `${tokenName}AntiCSRFAttackState`, null);

View file

@ -160,8 +160,9 @@ export class GBServer {
if (proxy !== undefined) {
GBServer.globals.publicAddress = proxy;
} else {
GBLog.info(`Establishing a development local proxy (proxy) on BOT_URL...`);
GBServer.globals.publicAddress = await core.ensureProxy(port);
process.env.BOT_URL = GBServer.globals.publicAddress;
GBLog.info(`Auto local proxy address defined at: ${process.env.BOT_URL}...`);
}
} else {
const serverAddress = process.env.BOT_URL;