payservedb 5.5.2 → 5.5.4

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/index.js CHANGED
@@ -70,7 +70,7 @@ const models = {
70
70
  AuditLog: require('./src/models/auditlog'),
71
71
  Company: require('./src/models/company'),
72
72
  Customer: require('./src/models/customer'),
73
- Email: require('./src/models/email'),
73
+ FacilityEmailDetails: require('./src/models/email'),
74
74
  Module: require('./src/models/module'),
75
75
  Facility: require('./src/models/facility'),
76
76
  RefreshToken: require('./src/models/refresh_token'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "5.5.2",
3
+ "version": "5.5.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,5 +1,5 @@
1
1
  const mongoose = require('mongoose');
2
- const EmailSchema = mongoose.Schema({
2
+ const FacilityEmailDetailsSchema = mongoose.Schema({
3
3
  host: {
4
4
  type: String,
5
5
  required: true
@@ -12,6 +12,10 @@ const EmailSchema = mongoose.Schema({
12
12
  type: Boolean,
13
13
  default: false
14
14
  },
15
+ sender: {
16
+ type: String,
17
+ required: true
18
+ },
15
19
  user: {
16
20
  type: String,
17
21
  required: true
@@ -30,5 +34,5 @@ const EmailSchema = mongoose.Schema({
30
34
  required: true
31
35
  }
32
36
  })
33
- const Email = mongoose.model('Email', EmailSchema);
34
- module.exports = Email
37
+ const FacilityEmailDetails = mongoose.model('FacilityEmailDetails', FacilityEmailDetailsSchema);
38
+ module.exports = FacilityEmailDetails