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

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

View file

@ -119,10 +119,8 @@ export class GBImporter {
localPath: string, localPath: string,
settingsJson: any settingsJson: any
) { ) {
const packageJson = JSON.parse(Fs.readFileSync(urlJoin(localPath, 'package.json'), 'utf8'));
const servicesJson = JSON.parse(Fs.readFileSync(urlJoin(localPath, 'services.json'), 'utf8')); const fullSettingsJson = { ...GBServer.globals.bootInstance, ...settingsJson };
const fullSettingsJson = { ...GBServer.globals.bootInstance, ...packageJson, ...settingsJson, ...servicesJson };
if (botId !== undefined) { if (botId !== undefined) {
fullSettingsJson.botId = botId; fullSettingsJson.botId = botId;