mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 20:59:16 +00:00
fix: dashboad ticket count conting only logged in user's tickets
This commit is contained in:
@@ -109,7 +109,6 @@ const ListTicketsService = async ({
|
||||
|
||||
if (date) {
|
||||
whereCondition = {
|
||||
...whereCondition,
|
||||
createdAt: {
|
||||
[Op.between]: [+startOfDay(parseISO(date)), +endOfDay(parseISO(date))]
|
||||
}
|
||||
@@ -127,7 +126,7 @@ const ListTicketsService = async ({
|
||||
};
|
||||
}
|
||||
|
||||
const limit = 20;
|
||||
const limit = 40;
|
||||
const offset = limit * (+pageNumber - 1);
|
||||
|
||||
const { count, rows: tickets } = await Ticket.findAndCountAll({
|
||||
|
||||
Reference in New Issue
Block a user