@openinc/parse-server-opendash 3.17.0 → 3.17.1

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.
@@ -105,7 +105,8 @@ async function getTicketData(tickets) {
105
105
  const state = getState(ticket);
106
106
  const messages = getMessages(ticket);
107
107
  const material = getTicketMaterial(ticket);
108
- const project = ticket.get("project")?.fetch({ useMasterKey: true });
108
+ const project = (0, catchError_1.catchError)(ticket.get("project")?.fetch({ useMasterKey: true }) ??
109
+ new Promise((res) => res(undefined)));
109
110
  const dataPromises = await Promise.all([
110
111
  downtimes,
111
112
  duedate,
@@ -133,7 +134,7 @@ async function getTicketData(tickets) {
133
134
  todos: dataPromises[8]?.todos,
134
135
  assignedTo: [...assignedusers, ...assignedroles],
135
136
  material: dataPromises[9],
136
- project: dataPromises[10],
137
+ project: dataPromises[10]?.[1],
137
138
  };
138
139
  });
139
140
  return await Promise.all(ticketDataPromises);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "3.17.0",
3
+ "version": "3.17.1",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.15.0",
6
6
  "keywords": [