mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Fixes wrong message type lookup
This commit is contained in:
parent
5f86f01e3a
commit
fed49c2072
@ -321,7 +321,7 @@ export class BusinessStartupService extends ChannelStartupService {
|
||||
try {
|
||||
const message: any = received;
|
||||
|
||||
const id = message[message.type].id;
|
||||
const id = message.messages[0][messageRaw.messageType].id;
|
||||
let urlServer = this.configService.get<WaBusiness>('WA_BUSINESS').URL;
|
||||
const version = this.configService.get<WaBusiness>('WA_BUSINESS').VERSION;
|
||||
urlServer = `${urlServer}/${version}/${id}`;
|
||||
|
Loading…
Reference in New Issue
Block a user