shuttlepro-shared 1.5.47 → 1.5.48
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/models/Assignment.js +2 -0
- package/models/Card.js +1 -0
- package/models/CardComments.js +2 -0
- package/models/EscalationManager.js +2 -0
- package/package.json +1 -1
package/models/Assignment.js
CHANGED
package/models/Card.js
CHANGED
|
@@ -170,6 +170,7 @@ const cardSchema = new mongoose.Schema(
|
|
|
170
170
|
);
|
|
171
171
|
|
|
172
172
|
cardSchema.index({ workspaceId: 1, createdAt: 1 }); // Common filter
|
|
173
|
+
cardSchema.index({ columnId: 1, deleted: 1, category: 1, createdAt: 1 }); // Task-manager board lookups
|
|
173
174
|
|
|
174
175
|
// Virtual for the assignedTo user
|
|
175
176
|
cardSchema.virtual("assignedToUser", {
|
package/models/CardComments.js
CHANGED
|
@@ -42,6 +42,8 @@ const EscalationManagerSchema = new Schema(
|
|
|
42
42
|
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
43
43
|
);
|
|
44
44
|
|
|
45
|
+
EscalationManagerSchema.index({ refId: 1 }); // Card/conversation escalation lookups
|
|
46
|
+
|
|
45
47
|
const EscalationManager = mongoose.model(
|
|
46
48
|
"EscalationManager",
|
|
47
49
|
EscalationManagerSchema
|