payservedb 2.1.4 → 2.1.5

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": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -90,8 +90,7 @@ const CustomerSchema = new mongoose.Schema({
90
90
  required: false
91
91
  },
92
92
  unit: {
93
- type: mongoose.Schema.Types.ObjectId,
94
- ref: 'Unit',
93
+ type: String,
95
94
  required: false
96
95
  },
97
96
  qrUniqueCode:
@@ -124,8 +123,7 @@ const CustomerSchema = new mongoose.Schema({
124
123
  required: false,
125
124
  },
126
125
  unit: {
127
- type: mongoose.Schema.Types.ObjectId,
128
- ref: 'Unit',
126
+ type: String,
129
127
  required: false
130
128
  },
131
129
  qrCode: {
@@ -165,8 +163,7 @@ const CustomerSchema = new mongoose.Schema({
165
163
  required: false
166
164
  },
167
165
  unit: {
168
- type: mongoose.Schema.Types.ObjectId,
169
- ref: 'Unit',
166
+ type: String,
170
167
  required: false
171
168
  },
172
169
  qrCode: {