fix(whatsapp.gblib): Fix in bot switching.

This commit is contained in:
Rodrigo Rodriguez 2023-09-03 16:25:22 -03:00
parent d7e00a2154
commit fb96a3f7c5

View file

@ -119,10 +119,8 @@ export class GBImporter {
localPath: string,
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, ...packageJson, ...settingsJson, ...servicesJson };
const fullSettingsJson = { ...GBServer.globals.bootInstance, ...settingsJson };
if (botId !== undefined) {
fullSettingsJson.botId = botId;