Skip to content

Commit e49f306

Browse files
committed
test: adjusts wasocket
1 parent 1631c2c commit e49f306

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/whatsapp/services/monitor.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class WAMonitoringService {
277277
const instance = new WAStartupService(this.configService, this.eventEmitter, this.repository, this.cache);
278278
instance.instanceName = name;
279279
this.logger.verbose('Instance loaded: ' + name);
280-
280+
console.log('Instance loaded: ' + name);
281281
await instance.connectToWhatsapp();
282282
this.logger.verbose('connectToWhatsapp: ' + name);
283283

@@ -304,6 +304,7 @@ export class WAMonitoringService {
304304

305305
if (collections.length > 0) {
306306
this.logger.verbose('Reading collections and setting instances');
307+
console.log(collections);
307308
await Promise.all(collections.map((coll) => this.setInstance(coll.namespace.replace(/^[\w-]+\./, ''))));
308309
} else {
309310
this.logger.verbose('No collections found');

src/whatsapp/services/whatsapp.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ export class WAStartupService {
16561656

16571657
if (
16581658
(this.localWebhook.webhook_base64 === true && received?.message.documentMessage) ||
1659-
received?.message.imageMessage
1659+
received?.message?.imageMessage
16601660
) {
16611661
const buffer = await downloadMediaMessage(
16621662
{ key: received.key, message: received?.message },

0 commit comments

Comments
 (0)