@avakado.ai/schemas 1.1.0 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avakado.ai/schemas",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Canonical Mongo schemas, models, enums and index declarations shared by the Avakado services.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
package/src/models/Job.js CHANGED
@@ -18,7 +18,6 @@ const JobSchema = new Schema({
18
18
  name: String,
19
19
  campaign: { type: Schema.Types.ObjectId, ref: "Campaign" },
20
20
  description: String,
21
- bullMQJobId: String, // bullmq job id
22
21
  status: { type: String, enum: jobStatusEnum, default: 'waiting' },
23
22
  priority: Number, // 1 (highest) .. 10 (lowest)
24
23
  schedule: {
@@ -40,8 +39,7 @@ const JobSchema = new Schema({
40
39
  discriminatorKey: 'jobType', timestamps: true, index: [
41
40
  { status: 1, 'schedule.run_at': 1 },
42
41
  { business: 1, status: 1 },
43
- { 'schedule.type': 1, 'schedule.run_at': 1 },
44
- { bullMQJobId: 1 }
42
+ { 'schedule.type': 1, 'schedule.run_at': 1 }
45
43
  ]
46
44
  });
47
45
  // Pre-save middleware for validation