mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-08-28 18:26:12 -06:00
fix: corrigido delete de mensagem quando nao salvo no banco de dados
This commit is contained in:
parent
a62f9ebe46
commit
bc11d0f751
@ -3447,6 +3447,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
await this.prismaRepository.messageUpdate.create({ data: messageUpdate });
|
||||
}
|
||||
} else {
|
||||
if (!message) return response;
|
||||
await this.prismaRepository.message.deleteMany({ where: { id: message.id } });
|
||||
}
|
||||
this.sendDataWebhook(Events.MESSAGES_DELETE, {
|
||||
|
Loading…
Reference in New Issue
Block a user