payservedb 6.0.2 → 6.0.3

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.0.2",
3
+ "version": "6.0.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -7,28 +7,24 @@ const powerMeterCustomerBandSchema = new mongoose.Schema({
7
7
  required: true
8
8
  },
9
9
  meterSerialNumber: {
10
- required: true,
11
-
10
+ type: String,
11
+ required: true
12
12
  },
13
13
  deviceId: {
14
14
  type: Number,
15
15
  required: false
16
-
17
16
  },
18
17
  gatewayId: {
19
18
  type: String,
20
19
  required: true
21
-
22
20
  },
23
21
  meterReading: {
24
22
  type: Number,
25
- required: true,
26
-
23
+ required: true
27
24
  },
28
25
  lastUpdated: {
29
26
  type: Date,
30
27
  required: true
31
-
32
28
  },
33
29
  manufacturer: {
34
30
  type: String,
@@ -39,7 +35,6 @@ const powerMeterCustomerBandSchema = new mongoose.Schema({
39
35
  required: true,
40
36
  enum: ['2 phase', '3 phase'],
41
37
  default: '2 phase'
42
-
43
38
  }
44
39
  }, {
45
40
  timestamps: true
@@ -47,4 +42,4 @@ const powerMeterCustomerBandSchema = new mongoose.Schema({
47
42
 
48
43
  const PowerMeterCustomerBand = mongoose.model('PowerMeterCustomerBand', powerMeterCustomerBandSchema);
49
44
 
50
- module.exports = PowerMeterCustomerBand;
45
+ module.exports = PowerMeterCustomerBand;