payservedb 7.8.6 → 7.8.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": "7.8.6",
3
+ "version": "7.8.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -84,10 +84,22 @@ const powerMeterSchema = new mongoose.Schema({
84
84
  enum: ['Off', 'On', 'Maintenance', 'Faulty'],
85
85
  default: 'On'
86
86
  },
87
- gatewayLiveStatus: {
87
+ gateWayLiveStatus: {
88
88
  type: String,
89
- enum: ['on', 'off'],
90
- default: 'off'
89
+ enum: ['online', 'offline'],
90
+ default: 'offline'
91
+ },
92
+ meterLiveStatus: {
93
+ type: String,
94
+ enum: ['online', 'offline'],
95
+ default: 'offline'
96
+ },
97
+ meterLiveStatusUpdated: {
98
+ type: Date,
99
+ },
100
+ getWayLiveStatusUpdated: {
101
+ type: Date,
102
+ default: Date.now
91
103
  },
92
104
  meterStatus: {
93
105
  type: String,