Refactor incident endpoints to use aggregation
This commit is contained in:
1 parent
c4d223aee5
commit
4ed995692d
6 files changed
+93
-96
No files matched your search
@@ -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).
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user