payservedb 8.5.9 → 8.6.1

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": "8.5.9",
3
+ "version": "8.6.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -5,7 +5,6 @@ const cashPaymentSchema = new mongoose.Schema(
5
5
  paymentReference: {
6
6
  type: String,
7
7
  required: true,
8
- unique: true,
9
8
  trim: true
10
9
  },
11
10
  receiptNumber: {
@@ -21,6 +21,10 @@ const CustomerSchema = new mongoose.Schema({
21
21
  type: String,
22
22
  required: true,
23
23
  },
24
+ combineInvoices: {
25
+ type: Boolean,
26
+ default: false
27
+ },
24
28
  email: {
25
29
  type: String,
26
30
  required: true,
@@ -134,10 +134,6 @@ const userSchema = new mongoose.Schema({
134
134
  type: Boolean,
135
135
  required: false
136
136
  },
137
- combineInvoices: {
138
- type: Boolean,
139
- default: false
140
- },
141
137
  companies: [{
142
138
  type: mongoose.Schema.Types.ObjectId,
143
139
  ref: 'Company',