fix: remove vcard support, waiting for better implementation

This commit is contained in:
canove
2020-10-07 17:46:57 -03:00
parent ffce591817
commit a21ccbc539
7 changed files with 34 additions and 119 deletions

View File

@@ -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) {

View File

@@ -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"]]
});