mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: fetchInstances with clientName parameter
This commit is contained in:
parent
3fa6b1fcc5
commit
671b677569
@ -6,6 +6,8 @@
|
||||
|
||||
### Fixed
|
||||
|
||||
* fetchInstances with clientName parameter
|
||||
|
||||
# 2.0.5-rc (2024-08-01 18:01)
|
||||
|
||||
### Features
|
||||
|
@ -68,7 +68,9 @@ export class WAMonitoringService {
|
||||
throw new NotFoundException(`Instance "${instanceName}" not found`);
|
||||
}
|
||||
|
||||
const where = instanceName ? { name: instanceName } : {};
|
||||
const clientName = await this.configService.get<Database>('DATABASE').CONNECTION.CLIENT_NAME;
|
||||
|
||||
const where = instanceName ? { name: instanceName, clientName } : { clientName };
|
||||
|
||||
const instances = await this.prismaRepository.instance.findMany({
|
||||
where,
|
||||
|
Loading…
Reference in New Issue
Block a user