@dhyasama/totem-models 8.20.0 → 8.21.0

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.
Files changed (2) hide show
  1. package/lib/Financials.js +8 -12
  2. package/package.json +1 -1
package/lib/Financials.js CHANGED
@@ -149,18 +149,14 @@ module.exports = function(mongoose, config) {
149
149
 
150
150
  },
151
151
 
152
- share: {
153
-
154
- recipients: [{
155
- sendTo: { type: String, trim: true },
156
- sendOn: { type: Date, required: false },
157
- sentOn: { type: Date, required: false },
158
- organization: { type: Schema.ObjectId, ref: 'Organization' },
159
- postmarkMessageId: { type: String, trim: true },
160
- status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
161
- }]
162
-
163
- }
152
+ share: [{
153
+ organization: { type: Schema.ObjectId, ref: 'Organization' },
154
+ sendTo: { type: String, trim: true },
155
+ sendOn: { type: Date, required: false },
156
+ sentOn: { type: Date, required: false },
157
+ postmarkMessageId: { type: String, trim: true },
158
+ status: { type: String, enum: [null, 'Sent', 'Bounced', 'Delivered', 'Opened', 'Clicked']}
159
+ }]
164
160
 
165
161
  }
166
162
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.20.0",
3
+ "version": "8.21.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",