improvement: use updatedAt instead of createdAt as reopen ticket criteria

This commit is contained in:
canove
2020-10-17 11:39:46 -03:00
parent f3ecb5dbd0
commit e0c1b0eec5

View File

@@ -118,7 +118,7 @@ const verifyTicket = async (
},
contactId: groupContact ? groupContact.id : contact.id
},
order: [["createdAt", "DESC"]],
order: [["updatedAt", "DESC"]],
include: ["contact"]
});