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

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 1db979ddbf - Show all commits

View file

@ -201,20 +201,19 @@ export class GBMinService {
return results;
};
const p = (async (instance) => {
await throttledPromiseAll(instances.map((async instance => {
try {
this.bar1.update(i, { botId: instance.botId });
await this['mountBot'](instance);
GBDeployer.mountGBKBAssets(`${instance.botId}.gbkb`,
instance.botId, `${instance.botId}.gbkb`);
i++;
} catch (error) {
GBLog.error(`Error mounting bot ${instance.botId}: ${error.message}\n${error.stack}`);
}
}).bind(this);
await throttledPromiseAll(instances.map(instance => p(instance)));
}).bind(this)));
this.bar1.stop();