mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 11:49:19 +00:00
improvement: remove ifinite scroll lib
This commit is contained in:
@@ -73,6 +73,8 @@ exports.index = async (req, res, next) => {
|
||||
order: [["createdAt", "DESC"]],
|
||||
});
|
||||
|
||||
const count = await ticket.countMessages();
|
||||
|
||||
const serializedMessages = ticketMessages.map(message => {
|
||||
return {
|
||||
...message.dataValues,
|
||||
@@ -86,7 +88,8 @@ exports.index = async (req, res, next) => {
|
||||
|
||||
return res.json({
|
||||
messages: serializedMessages.reverse(),
|
||||
ticket: ticket,
|
||||
ticket,
|
||||
count,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user