payservedb 3.3.5 → 3.3.7

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": "payservedb",
3
- "version": "3.3.5",
3
+ "version": "3.3.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -36,11 +36,6 @@ const handoverSchema = new mongoose.Schema({
36
36
  required: true,
37
37
  enum: ["Move-In", "Move-Out"]
38
38
  },
39
- company: {
40
- type: mongoose.Schema.Types.ObjectId,
41
- ref: "Company",
42
- required: true
43
- },
44
39
  facility: {
45
40
  type: mongoose.Schema.Types.ObjectId,
46
41
  ref: "Facility",
@@ -18,14 +18,13 @@ const iotCardSchema = new mongoose.Schema({
18
18
  },
19
19
  location: {
20
20
  type: String,
21
- required: true,
22
21
  trim: true
23
22
  },
24
23
  status: {
25
24
  type: String,
26
25
  required: true,
27
26
  enum: ['active', 'inactive', 'suspended'],
28
- default: 'active'
27
+ default: 'inactive'
29
28
  }
30
29
  }, {
31
30
  timestamps: true