payservedb 5.1.4 → 5.1.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": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -39,7 +39,7 @@ const CampaignSchema = new mongoose.Schema({
39
39
  },
40
40
  channels: [{
41
41
  type: String,
42
- enum: ['Email', 'Social Media', 'SMS', 'Ads'],
42
+ enum: ['SMS'],
43
43
  required: true
44
44
  }],
45
45
  status: {
@@ -1,3 +1,5 @@
1
+ const mongoose = require('mongoose');
2
+
1
3
  const supplierSchema = new mongoose.Schema({
2
4
  // Existing fields remain unchanged
3
5
  facilityId: {
@@ -66,4 +68,8 @@ const supplierSchema = new mongoose.Schema({
66
68
  }
67
69
  }, {
68
70
  timestamps: true
69
- });
71
+ });
72
+
73
+ const Supplier = mongoose.model('Supplier', supplierSchema);
74
+
75
+ module.exports = Supplier;