payservedb 1.3.1 → 1.3.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": "1.3.1",
3
+ "version": "1.3.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -7,7 +7,8 @@ const LevySchema = new mongoose.Schema({
7
7
  trim: true,
8
8
  },
9
9
  levyType: {
10
- type: String,
10
+ type: mongoose.Schema.Types.ObjectId, // Reference to LevyType
11
+ ref: 'LevyType', // Reference the correct model here
11
12
  required: [true, 'Levy type is required'],
12
13
  trim: true,
13
14
  },