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