@justair/justair-library 3.1.26 → 3.1.27

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justair/justair-library",
3
- "version": "3.1.26",
3
+ "version": "3.1.27",
4
4
  "description": "JustAir Internal Library",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -1,20 +1,26 @@
1
- import mongoose from 'mongoose';
1
+ import mongoose from "mongoose";
2
2
 
3
- const qaNotificationsSchema = mongoose.Schema({
4
- monitorId: {type: mongoose.Types.ObjectId, ref: 'Monitors'},
3
+ const qaNotificationsSchema = mongoose.Schema(
4
+ {
5
+ monitorId: { type: mongoose.Types.ObjectId, ref: "Monitors" },
5
6
  issue: String,
6
- reportedAt: Date,
7
+ reportedAt: Date,
7
8
  reportedBy: String,
8
9
  resolvedAt: Date,
9
10
  resolvedBy: String,
10
11
  resolution: String,
11
12
  statusHistory: [Object],
12
- status: {type: String, enum: ["Open", "Resolved", "Cancelled"]}
13
- },
14
- {
15
- timestamps: true
16
- });
13
+ type: String,
14
+ status: { type: String, enum: ["Open", "Resolved", "Cancelled"] },
15
+ },
16
+ {
17
+ timestamps: true,
18
+ }
19
+ );
17
20
 
18
- const QANotifications = mongoose.model('QANotifications', qaNotificationsSchema);
21
+ const QANotifications = mongoose.model(
22
+ "QANotifications",
23
+ qaNotificationsSchema
24
+ );
19
25
 
20
- export {qaNotificationsSchema, QANotifications};
26
+ export { qaNotificationsSchema, QANotifications };