mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
fix: remove vcard support, waiting for better implementation
This commit is contained in:
@@ -7,7 +7,6 @@ interface MessageData {
|
||||
ticketId: number;
|
||||
body: string;
|
||||
contactId?: number;
|
||||
vcardContactId?: number;
|
||||
fromMe?: boolean;
|
||||
read?: boolean;
|
||||
mediaType?: string;
|
||||
@@ -29,7 +28,7 @@ const CreateMessageService = async ({
|
||||
await Message.upsert(messageData);
|
||||
|
||||
const message = await Message.findByPk(messageData.id, {
|
||||
include: ["contact", "vcardContact"]
|
||||
include: ["contact"]
|
||||
});
|
||||
|
||||
if (!message) {
|
||||
|
||||
@@ -44,7 +44,7 @@ const ListMessagesService = async ({
|
||||
const { count, rows: messages } = await Message.findAndCountAll({
|
||||
where: whereCondition,
|
||||
limit,
|
||||
include: ["contact", "vcardContact"],
|
||||
include: ["contact"],
|
||||
offset,
|
||||
order: [["createdAt", "DESC"]]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user