@dynamatix/cat-shared 0.0.114 → 0.0.115

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.
@@ -52,5 +52,5 @@ const alertSchema = new mongoose.Schema({
52
52
  alertSchema.index({ source: 1, sourceId: 1 });
53
53
  alertSchema.index({ status: 1, isActive: 1 });
54
54
 
55
- const WorkflowAlertModel = mongoose.model('WorkflowAlert', alertSchema);
55
+ const WorkflowAlertModel = mongoose.models.WorkflowAlert || mongoose.model('WorkflowAlert', alertSchema);
56
56
  export default WorkflowAlertModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/cat-shared",
3
- "version": "0.0.114",
3
+ "version": "0.0.115",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"