mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-21 19:47:21 -06:00
test: adjusts wasocket
This commit is contained in:
parent
1631c2c342
commit
e49f30641e
@ -277,7 +277,7 @@ export class WAMonitoringService {
|
|||||||
const instance = new WAStartupService(this.configService, this.eventEmitter, this.repository, this.cache);
|
const instance = new WAStartupService(this.configService, this.eventEmitter, this.repository, this.cache);
|
||||||
instance.instanceName = name;
|
instance.instanceName = name;
|
||||||
this.logger.verbose('Instance loaded: ' + name);
|
this.logger.verbose('Instance loaded: ' + name);
|
||||||
|
console.log('Instance loaded: ' + name);
|
||||||
await instance.connectToWhatsapp();
|
await instance.connectToWhatsapp();
|
||||||
this.logger.verbose('connectToWhatsapp: ' + name);
|
this.logger.verbose('connectToWhatsapp: ' + name);
|
||||||
|
|
||||||
@ -304,6 +304,7 @@ export class WAMonitoringService {
|
|||||||
|
|
||||||
if (collections.length > 0) {
|
if (collections.length > 0) {
|
||||||
this.logger.verbose('Reading collections and setting instances');
|
this.logger.verbose('Reading collections and setting instances');
|
||||||
|
console.log(collections);
|
||||||
await Promise.all(collections.map((coll) => this.setInstance(coll.namespace.replace(/^[\w-]+\./, ''))));
|
await Promise.all(collections.map((coll) => this.setInstance(coll.namespace.replace(/^[\w-]+\./, ''))));
|
||||||
} else {
|
} else {
|
||||||
this.logger.verbose('No collections found');
|
this.logger.verbose('No collections found');
|
||||||
|
@ -1656,7 +1656,7 @@ export class WAStartupService {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
(this.localWebhook.webhook_base64 === true && received?.message.documentMessage) ||
|
(this.localWebhook.webhook_base64 === true && received?.message.documentMessage) ||
|
||||||
received?.message.imageMessage
|
received?.message?.imageMessage
|
||||||
) {
|
) {
|
||||||
const buffer = await downloadMediaMessage(
|
const buffer = await downloadMediaMessage(
|
||||||
{ key: received.key, message: received?.message },
|
{ key: received.key, message: received?.message },
|
||||||
|
Loading…
Reference in New Issue
Block a user