check idx

This commit is contained in:
Alex Holliday committed 2025-12-18 18:50:20 +00:00
1 parent 8c9a4bd6ec
commit fdd935c676
1 file changed
+2
+2
View File
@@ -308,4 +308,6 @@ const CheckSchema = new Schema<ICheck>(
}
);
CheckSchema.index({ "metadata.monitorId": 1, createdAt: 1 });
export const Check = mongoose.model<ICheck>("Check", CheckSchema);