mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 12:22:21 -06:00
Fix: Resolved issue with connecting to instance
Modified: index.router.ts, whatsapp.baileys.service.ts Fixed an issue with connecting to the instance by modifying the code in index.router.ts and whatsapp.baileys.service.ts. This change resolves a critical problem that was preventing the application from connecting to the necessary instance.
This commit is contained in:
@@ -416,16 +416,16 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
}
|
||||
}
|
||||
|
||||
if (connection === 'connecting') {
|
||||
if (this.configService.get<Database>('DATABASE').ENABLED) {
|
||||
await this.prismaRepository.instance.update({
|
||||
where: { id: this.instanceId },
|
||||
data: {
|
||||
connectionStatus: 'connecting',
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
// if (connection === 'connecting') {
|
||||
// if (this.configService.get<Database>('DATABASE').ENABLED) {
|
||||
// await this.prismaRepository.instance.update({
|
||||
// where: { id: this.instanceId },
|
||||
// data: {
|
||||
// connectionStatus: 'connecting',
|
||||
// },
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
if (connection === 'open') {
|
||||
this.instance.wuid = this.client.user.id.replace(/:\d+/, '');
|
||||
|
||||
Reference in New Issue
Block a user