mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-19 09:53:36 -06:00
test: process exit when errors
This commit is contained in:
parent
f83d8de476
commit
41bea8931f
@ -1432,7 +1432,12 @@ export class WAStartupService {
|
|||||||
this.logger.verbose('Event received: messages.upsert');
|
this.logger.verbose('Event received: messages.upsert');
|
||||||
const received = messages[0];
|
const received = messages[0];
|
||||||
|
|
||||||
if (type !== 'notify' || received.message?.protocolMessage || received.message?.pollUpdateMessage) {
|
if (
|
||||||
|
type !== 'notify' ||
|
||||||
|
!received.message ||
|
||||||
|
received.message?.protocolMessage ||
|
||||||
|
received.message?.pollUpdateMessage
|
||||||
|
) {
|
||||||
this.logger.verbose('message rejected');
|
this.logger.verbose('message rejected');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user