mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: messageId baileys
This commit is contained in:
parent
fa14b7b1a9
commit
a7887f0b1c
@ -156,7 +156,6 @@ export class ChatRouter extends RouterBroker {
|
||||
|
||||
return res.status(HttpStatus.OK).json(response);
|
||||
})
|
||||
// TODO: realizar filtro pelo postgres corretamente
|
||||
.post(this.routerPath('findMessages'), ...guards, async (req, res) => {
|
||||
const response = await this.dataValidate<Query<Message>>({
|
||||
request: req,
|
||||
|
@ -70,6 +70,7 @@ export class ChannelStartupService {
|
||||
|
||||
public setInstance(instance: InstanceDto) {
|
||||
this.instance.name = instance.instanceName;
|
||||
this.logger.setInstance(instance.instanceName);
|
||||
this.instance.id = instance.instanceId;
|
||||
this.instance.integration = instance.integration;
|
||||
this.instance.number = instance.number;
|
||||
|
@ -39,6 +39,7 @@ import { Label } from '@whiskeysockets/baileys/lib/Types/Label';
|
||||
import { LabelAssociation } from '@whiskeysockets/baileys/lib/Types/LabelAssociation';
|
||||
import axios from 'axios';
|
||||
import { isBase64, isURL } from 'class-validator';
|
||||
import { randomBytes } from 'crypto';
|
||||
import EventEmitter2 from 'eventemitter2';
|
||||
// import { exec } from 'child_process';
|
||||
import ffmpeg from 'fluent-ffmpeg';
|
||||
@ -1792,6 +1793,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
const messageSent = await (async () => {
|
||||
const option = {
|
||||
quoted,
|
||||
messageId: '3EB0' + randomBytes(6).toString('hex').toUpperCase(),
|
||||
};
|
||||
|
||||
if (
|
||||
|
@ -1,11 +1,8 @@
|
||||
// Integrations Schema
|
||||
// TODO: rever todas as integrações e garantir o funcionamento perfeito
|
||||
export * from '../api/integrations/chatwoot/validate/chatwoot.schema';
|
||||
export * from '../api/integrations/rabbitmq/validate/rabbitmq.schema';
|
||||
export * from '../api/integrations/sqs/validate/sqs.schema';
|
||||
export * from '../api/integrations/typebot/validate/typebot.schema';
|
||||
|
||||
// Instance Schema
|
||||
export * from './chat.schema';
|
||||
export * from './group.schema';
|
||||
export * from './instance.schema';
|
||||
|
Loading…
Reference in New Issue
Block a user