mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
MySQL implementation via prism orm
This commit is contained in:
@@ -355,7 +355,11 @@ export class WAMonitoringService {
|
||||
}
|
||||
|
||||
private async loadInstancesFromDatabasePostgres() {
|
||||
const instances = await this.prismaRepository.instance.findMany();
|
||||
const clientName = await this.configService.get<Database>('DATABASE').CONNECTION.CLIENT_NAME;
|
||||
|
||||
const instances = await this.prismaRepository.instance.findMany({
|
||||
where: { clientName: clientName },
|
||||
});
|
||||
|
||||
if (instances.length === 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user