fix(whatsapp.gblib): Fix in bot switching.
This commit is contained in:
parent
d7e00a2154
commit
fb96a3f7c5
1 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue