payservedb 6.7.1 → 6.7.2

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": "6.7.1",
3
+ "version": "6.7.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -7,8 +7,8 @@ const powerMeterSchema = new mongoose.Schema({
7
7
  required: true
8
8
  },
9
9
  gatewayId: {
10
- type: mongoose.Schema.Types.ObjectId,
11
- ref: 'PowerMeterGateway'
10
+ type: Number,
11
+ required: false
12
12
  },
13
13
  communicationProtocol: {
14
14
  type: mongoose.Schema.Types.ObjectId,
@@ -28,7 +28,7 @@ const powerMeterSchema = new mongoose.Schema({
28
28
  },
29
29
  mqttId: {
30
30
  type: String,
31
- required: true
31
+ trim: true
32
32
  },
33
33
  previousMeterReading: {
34
34
  type: Number,