@dynamatix/cat-shared 0.0.108 → 0.0.109
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import mongoose from "mongoose";
|
|
2
2
|
|
|
3
|
-
const alertSchema = new Schema({
|
|
3
|
+
const alertSchema = new mongoose.Schema({
|
|
4
4
|
contextId: {
|
|
5
|
-
type: Schema.Types.ObjectId,
|
|
5
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
6
6
|
required: true
|
|
7
7
|
},
|
|
8
8
|
source: {
|
|
@@ -11,7 +11,7 @@ const alertSchema = new Schema({
|
|
|
11
11
|
index: true
|
|
12
12
|
},
|
|
13
13
|
sourceId: {
|
|
14
|
-
type: Schema.Types.ObjectId,
|
|
14
|
+
type: mongoose.Schema.Types.ObjectId,
|
|
15
15
|
required: true,
|
|
16
16
|
index: true
|
|
17
17
|
},
|