payservedb 3.6.5 → 3.6.6

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.6.5",
3
+ "version": "3.6.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -18,7 +18,7 @@ const meterSchema = new mongoose.Schema({
18
18
  required: true,
19
19
  trim: true,
20
20
  unique: true,
21
- index: true
21
+ index: true
22
22
  },
23
23
  accountNumber: {
24
24
  type: String,
@@ -41,8 +41,8 @@ const meterSchema = new mongoose.Schema({
41
41
  valveType: {
42
42
  type: String,
43
43
  enum: ['automatic', 'manual'],
44
- default:'manual'
45
- },
44
+ default: 'manual'
45
+ },
46
46
  isInstalled: {
47
47
  type: Boolean,
48
48
  default: false
@@ -73,7 +73,7 @@ const meterSchema = new mongoose.Schema({
73
73
  readingHistory: [{
74
74
  reading: Number,
75
75
  date: Date,
76
- readBy: String
76
+ time: Date
77
77
  }],
78
78
  currentReading: {
79
79
  type: Number,