mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 12:19:16 +00:00
added new "last message" logic, before useReducer
This commit is contained in:
@@ -7,7 +7,7 @@ exports.getContacts = async (req, res) => {
|
||||
const contacts = await Contact.findAll({
|
||||
include: {
|
||||
model: Message,
|
||||
attributes: ["messageBody", "createdAt"],
|
||||
attributes: [],
|
||||
},
|
||||
attributes: {
|
||||
include: [
|
||||
|
||||
Reference in New Issue
Block a user