@openinc/parse-server-opendash 2.4.37 → 2.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ async function init(name) {
|
|
|
27
27
|
const totalCountPipeline = [
|
|
28
28
|
{ $group: { _id: "ticket" } }, // Group by ticket to only get the latest state of the ticket
|
|
29
29
|
{ $match: { state: state } }, // only get tickets with the state provided
|
|
30
|
-
{ count: { $sum: 1 } }, // count the number of tickets
|
|
30
|
+
{ $count: { $sum: 1 } }, // count the number of tickets
|
|
31
31
|
];
|
|
32
32
|
const totalCount = await new Parse.Query(types_1.Maintenance_Ticket_Kanban_State).aggregate(totalCountPipeline,
|
|
33
33
|
//@ts-expect-error
|