Refactor incident endpoints to use aggregation

This commit is contained in:
Alex Holliday committed 2025-01-21 15:30:51 -08:00
1 parent c4d223aee5
commit 4ed995692d
6 files changed
+93 -96

No files matched your search

+7
View File
@@ -12,6 +12,13 @@ const BaseCheckSchema = mongoose.Schema({
immutable: true,
index: true,
},
teamId: {
type: mongoose.Schema.Types.ObjectId,
ref: "Team",
immutable: true,
index: true,
},
/**
* Status of the check (true for up, false for down).
*