payservedb 5.0.5 → 5.0.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": "5.0.5",
3
+ "version": "5.0.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -26,14 +26,14 @@ const visitorSchema = new mongoose.Schema({
26
26
  type: String,
27
27
  required: false
28
28
  },
29
- status:{
30
- type:String,
31
- required:false
29
+ status: {
30
+ type: String,
31
+ required: false
32
32
  },
33
33
  type: {
34
34
  type: String,
35
35
  required: false,
36
- enum: ["Staff", "Other","Service Providers","Government Officials/Agents","Student",""]
36
+ enum: ["Staff", "Other", "Service Providers", "Government Officials/Agents", "Student", ""]
37
37
  },
38
38
  residentId: {
39
39
  type: mongoose.Schema.Types.ObjectId,
@@ -46,8 +46,12 @@ const visitorSchema = new mongoose.Schema({
46
46
  },
47
47
  invitationDate: {
48
48
  type: String,
49
- required: false
50
-     },
49
+ required: false
50
+ },
51
+ visitingEndDate: {
52
+ type: String,
53
+ required: false
54
+ },
51
55
  facilityId: {
52
56
  type: mongoose.Schema.Types.ObjectId,
53
57
  ref: 'Facility',