fix: Bug when send remote message
							parent
							
								
									90e9e311c3
								
							
						
					
					
						commit
						4b9dca2401
					
				| 
						 | 
					@ -75,10 +75,10 @@ import GetProfilePicUrl from "../services/WbotServices/GetProfilePicUrl";
 | 
				
			||||||
import CreateContactService from "../services/ContactServices/CreateContactService";
 | 
					import CreateContactService from "../services/ContactServices/CreateContactService";
 | 
				
			||||||
import { botSendMessage } from "../services/WbotServices/wbotMessageListener";
 | 
					import { botSendMessage } from "../services/WbotServices/wbotMessageListener";
 | 
				
			||||||
import WhatsappQueue from "../models/WhatsappQueue";
 | 
					import WhatsappQueue from "../models/WhatsappQueue";
 | 
				
			||||||
import { get } from "../helpers/RedisClient"
 | 
					import { get } from "../helpers/RedisClient";
 | 
				
			||||||
import CountStatusChatEndService from "../services/StatusChatEndService/CountStatusChatEndService"
 | 
					import CountStatusChatEndService from "../services/StatusChatEndService/CountStatusChatEndService";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const index = async (req: Request, res: Response): Promise<Response> => {  
 | 
					export const index = async (req: Request, res: Response): Promise<Response> => {
 | 
				
			||||||
  const {
 | 
					  const {
 | 
				
			||||||
    pageNumber,
 | 
					    pageNumber,
 | 
				
			||||||
    status,
 | 
					    status,
 | 
				
			||||||
| 
						 | 
					@ -110,8 +110,8 @@ export const index = async (req: Request, res: Response): Promise<Response> => {
 | 
				
			||||||
    withUnreadMessages,
 | 
					    withUnreadMessages,
 | 
				
			||||||
    unlimited,
 | 
					    unlimited,
 | 
				
			||||||
    searchParamContent
 | 
					    searchParamContent
 | 
				
			||||||
  }); 
 | 
					  });
 | 
				
			||||||
 
 | 
					
 | 
				
			||||||
  return res.status(200).json({ tickets, count, hasMore });
 | 
					  return res.status(200).json({ tickets, count, hasMore });
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -149,7 +149,7 @@ export const remoteTicketCreation = async (
 | 
				
			||||||
    const queue: any = await WhatsappQueue.findOne({
 | 
					    const queue: any = await WhatsappQueue.findOne({
 | 
				
			||||||
      where: { whatsappId },
 | 
					      where: { whatsappId },
 | 
				
			||||||
      attributes: ["queueId"]
 | 
					      attributes: ["queueId"]
 | 
				
			||||||
    });
 | 
					    }); 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const { queueId } = queue;
 | 
					    const { queueId } = queue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -213,7 +213,7 @@ export const remoteTicketCreation = async (
 | 
				
			||||||
          undefined,
 | 
					          undefined,
 | 
				
			||||||
          queueId
 | 
					          queueId
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        botSendMessage(ticket, msg);
 | 
					        botSendMessage(ticket, `\u200e${msg}`);
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      const io = getIO();
 | 
					      const io = getIO();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue