@openinc/parse-server-opendash 2.4.85 → 2.4.86
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.
|
@@ -42,7 +42,7 @@ async function handleRequest(request) {
|
|
|
42
42
|
//Log the time taken to fetch the data in seconds
|
|
43
43
|
console.log(`Function openinc-openservice-ticket-data runs for: ${(new Date().getTime() - time) / 1000}s. Next: Fetch ticket data`);
|
|
44
44
|
// fetch all tickets for sorting by data
|
|
45
|
-
const ticketData = await ticketQuery.
|
|
45
|
+
const ticketData = await ticketQuery.map(async (ticket) => {
|
|
46
46
|
let assignedusers = [];
|
|
47
47
|
let assignedroles = [];
|
|
48
48
|
if (typeof ticket.assignedusers !== "undefined") {
|