@openinc/parse-server-opendash 3.9.2 → 3.9.4

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.
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ (async () => { })();
@@ -11,14 +11,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  const node_process_1 = __importDefault(require("node:process"));
12
12
  const node_worker_threads_1 = require("node:worker_threads");
13
13
  const node_js_1 = __importDefault(require("parse/node.js"));
14
- const index_js_1 = require("../features/config/index.js");
15
- const index_js_2 = require("../features/notifications/index.js");
16
- const openinc_openservice_save_ticket_data_js_1 = require("../functions/openinc-openservice-save-ticket-data.js");
17
- const catchError_js_1 = require("../helper/catchError.js");
18
- const Config_js_1 = require("../types/Config.js");
19
- const Maintenance_Schedule_Template_js_1 = require("../types/Maintenance_Schedule_Template.js");
20
- const Notification_js_1 = require("../types/Notification.js");
21
- const Notification_Setting_js_1 = require("../types/Notification_Setting.js");
14
+ const index_js_1 = require("../../../features/config/index.js");
15
+ const index_js_2 = require("../../../features/notifications/index.js");
16
+ const openinc_openservice_save_ticket_data_js_1 = require("../../../functions/openinc-openservice-save-ticket-data.js");
17
+ const catchError_js_1 = require("../../../helper/catchError.js");
18
+ const Config_js_1 = require("../../../types/Config.js");
19
+ const Maintenance_Schedule_Template_js_1 = require("../../../types/Maintenance_Schedule_Template.js");
20
+ const Notification_js_1 = require("../../../types/Notification.js");
21
+ const Notification_Setting_js_1 = require("../../../types/Notification_Setting.js");
22
22
  function l(message) {
23
23
  if (node_worker_threads_1.parentPort) {
24
24
  node_worker_threads_1.parentPort.postMessage(message);
@@ -11,14 +11,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  const node_process_1 = __importDefault(require("node:process"));
12
12
  const node_worker_threads_1 = require("node:worker_threads");
13
13
  const node_js_1 = __importDefault(require("parse/node.js"));
14
- const index_js_1 = require("../features/config/index.js");
15
- const index_js_2 = require("../features/notifications/index.js");
16
- const openinc_openservice_save_ticket_data_js_1 = require("../functions/openinc-openservice-save-ticket-data.js");
17
- const catchError_js_1 = require("../helper/catchError.js");
18
- const Config_js_1 = require("../types/Config.js");
19
- const Maintenance_Schedule_Template_js_1 = require("../types/Maintenance_Schedule_Template.js");
20
- const Notification_js_1 = require("../types/Notification.js");
21
- const Notification_Setting_js_1 = require("../types/Notification_Setting.js");
14
+ const index_js_1 = require("../../../features/config/index.js");
15
+ const index_js_2 = require("../../../features/notifications/index.js");
16
+ const openinc_openservice_save_ticket_data_js_1 = require("../../../functions/openinc-openservice-save-ticket-data.js");
17
+ const catchError_js_1 = require("../../../helper/catchError.js");
18
+ const Config_js_1 = require("../../../types/Config.js");
19
+ const Maintenance_Schedule_Template_js_1 = require("../../../types/Maintenance_Schedule_Template.js");
20
+ const Notification_js_1 = require("../../../types/Notification.js");
21
+ const Notification_Setting_js_1 = require("../../../types/Notification_Setting.js");
22
22
  function l(message) {
23
23
  if (node_worker_threads_1.parentPort) {
24
24
  node_worker_threads_1.parentPort.postMessage(message);
@@ -227,6 +227,8 @@ async function getMessages(ticket) {
227
227
  const messages = [];
228
228
  const todos = [];
229
229
  for (const msg of allMessages) {
230
+ if (!msg.data)
231
+ continue;
230
232
  if (msg.data.type !== "todo") {
231
233
  messages.push(msg);
232
234
  continue;
@@ -54,6 +54,7 @@ async function init() {
54
54
  read: ".*",
55
55
  write: ".*",
56
56
  delete: ".*",
57
+ ownerGroup: false,
57
58
  }));
58
59
  }
59
60
  if (object.get("tag")) {
@@ -24,7 +24,8 @@ async function init() {
24
24
  }));
25
25
  // Handle default tag prefix
26
26
  if (request.context.beforeSaveAfterCreation) {
27
- object.set("tagPrefix", `tenant-${object.id}-`);
27
+ if (!object.get("tagPrefix"))
28
+ object.set("tagPrefix", `tenant-${object.id}-`);
28
29
  }
29
30
  // Handle Data Source
30
31
  const rootSource = await new Parse.Query(types_1.Source)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openinc/parse-server-opendash",
3
- "version": "3.9.2",
3
+ "version": "3.9.4",
4
4
  "description": "Parse Server Cloud Code for open.INC Stack.",
5
5
  "packageManager": "pnpm@10.12.4",
6
6
  "keywords": [