@dhyasama/totem-models 8.88.0 → 8.90.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.
- package/lib/Financials.js +6 -1
- package/lib/Organization.js +2 -5
- package/package.json +1 -1
package/lib/Financials.js
CHANGED
|
@@ -41,7 +41,7 @@ module.exports = function(mongoose, config) {
|
|
|
41
41
|
form: [{
|
|
42
42
|
_id: false,
|
|
43
43
|
name: { type: String, trim: true },
|
|
44
|
-
type: { type: String, enum: [null, 'block', '
|
|
44
|
+
type: { type: String, enum: [null, 'block', 'document', 'metric', 'question']}
|
|
45
45
|
}],
|
|
46
46
|
|
|
47
47
|
cash: {
|
|
@@ -130,6 +130,11 @@ module.exports = function(mongoose, config) {
|
|
|
130
130
|
|
|
131
131
|
company: {
|
|
132
132
|
|
|
133
|
+
email: {
|
|
134
|
+
subject: { type: String, trim: true },
|
|
135
|
+
body: { type: String, trim: true }
|
|
136
|
+
},
|
|
137
|
+
|
|
133
138
|
sendTo: [{
|
|
134
139
|
email: { type: String, trim: true },
|
|
135
140
|
name: { type: String, trim: true }
|
package/lib/Organization.js
CHANGED
|
@@ -274,8 +274,8 @@ module.exports = function(mongoose, config) {
|
|
|
274
274
|
|
|
275
275
|
messages: [{
|
|
276
276
|
_id: false,
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
subject: { type: String, trim: true },
|
|
278
|
+
body: { type: String, trim: true }
|
|
279
279
|
}],
|
|
280
280
|
templates: [{
|
|
281
281
|
_id: false,
|
|
@@ -1850,9 +1850,6 @@ module.exports = function(mongoose, config) {
|
|
|
1850
1850
|
// Clean up missing references
|
|
1851
1851
|
org.people = _.reject(org.people, function(item) { return !item.person; });
|
|
1852
1852
|
|
|
1853
|
-
// Required for mixed types
|
|
1854
|
-
org.markModified('customFields.fields');
|
|
1855
|
-
|
|
1856
1853
|
org.save(cb);
|
|
1857
1854
|
|
|
1858
1855
|
};
|