use creatdAt

This commit is contained in:
Alex Holliday committed 2026-01-26 23:15:59 +00:00
1 parent fd5f493345
commit e26f3facf1
2 files changed
+13 -15

No files matched your search

+2 -4
View File
@@ -284,11 +284,9 @@ const CheckSchema = new Schema<CheckDocument>(
}
);
CheckSchema.index({ updatedAt: 1 });
CheckSchema.index({ "metadata.monitorId": 1, updatedAt: 1 });
CheckSchema.index({ "metadata.monitorId": 1, updatedAt: -1 });
CheckSchema.index({ "metadata.monitorId": 1, createdAt: -1 });
CheckSchema.index({ "metadata.teamId": 1, updatedAt: -1 });
CheckSchema.index({ "metadata.monitorId": 1, createdAt: 1 });
CheckSchema.index({ createdAt: 1 });
CheckSchema.index({ "metadata.teamId": 1, createdAt: -1 });
const CheckModel = model<CheckDocument>("Check", CheckSchema);