dt-common-device 13.0.17 → 13.0.20

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.
@@ -12,7 +12,7 @@ class CronicleService {
12
12
  this.cronicleApiKey = process.env.CRONICLE_API_KEY || "";
13
13
  }
14
14
  async registerJob(payload) {
15
- const { name, apiUrl, method, schedule, cronJobId, target, category, timezone, enabled = true, } = payload;
15
+ const { name, apiUrl, method, schedule, cronJobId, target, category, notes, timezone, enabled = true, } = payload;
16
16
  try {
17
17
  await axios_1.default.post(`${this.cronicleEndpoint}/create_event/v1`, {
18
18
  id: cronJobId,
@@ -44,6 +44,7 @@ class CronicleService {
44
44
  minutes: schedule.minutes,
45
45
  },
46
46
  timeout: 60,
47
+ notes: notes
47
48
  });
48
49
  }
49
50
  catch (error) {
@@ -15,4 +15,5 @@ export interface ICronicle {
15
15
  };
16
16
  timezone?: string;
17
17
  enabled?: boolean;
18
+ notes?: string;
18
19
  }
@@ -9,7 +9,7 @@ exports.closeNotificationQueue = closeNotificationQueue;
9
9
  const bullmq_1 = require("bullmq");
10
10
  const config_1 = require("../config/config");
11
11
  const ioredis_1 = __importDefault(require("ioredis"));
12
- const QUEUE_NAME = "notification:events";
12
+ const QUEUE_NAME = "notification-events";
13
13
  // Singleton instances
14
14
  let notificationQueue = null;
15
15
  let notificationWorker = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "13.0.17",
3
+ "version": "13.0.20",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [