mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 09:51:24 -06:00
feat: added option to generate qrcode as soon as the instance is created
This commit is contained in:
parent
fdc72bc84e
commit
631dd01c92
@ -94,6 +94,19 @@ export class WAMonitoringService {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
let apikey: string;
|
||||||
|
if (this.configService.get<Auth>('AUTHENTICATION').EXPOSE_IN_FETCH_INSTANCES) {
|
||||||
|
const tokenStore = await this.repository.auth.find(key);
|
||||||
|
apikey = tokenStore.apikey || 'Apikey not found';
|
||||||
|
|
||||||
|
instances.push({
|
||||||
|
instance: {
|
||||||
|
instanceName: key,
|
||||||
|
status: value.connectionStatus.state,
|
||||||
|
apikey,
|
||||||
|
},
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
instances.push({
|
instances.push({
|
||||||
instance: {
|
instance: {
|
||||||
@ -104,6 +117,7 @@ export class WAMonitoringService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return instances.find((i) => i.instance.instanceName === instanceName) ?? instances;
|
return instances.find((i) => i.instance.instanceName === instanceName) ?? instances;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user