@dhyasama/totem-models 6.15.2 → 6.15.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/lib/Organization.js +9 -3
- package/package.json +1 -1
package/lib/Organization.js
CHANGED
|
@@ -214,7 +214,9 @@ module.exports = function(mongoose, config) {
|
|
|
214
214
|
color: { type: String, trim: true }
|
|
215
215
|
}],
|
|
216
216
|
|
|
217
|
-
sourceTypes:
|
|
217
|
+
sourceTypes: { type: Array, default: ['Cold Inbound', 'Cold Outbound', 'Met at Event', 'Was Referred', 'Other'] },
|
|
218
|
+
|
|
219
|
+
referrerTypes: { type: Array, default: ['Founder', 'Investor', 'Service Provider', 'Friends & Family', 'Limited Partner', 'Other'] },
|
|
218
220
|
|
|
219
221
|
standardFields: {
|
|
220
222
|
|
|
@@ -1319,8 +1321,12 @@ module.exports = function(mongoose, config) {
|
|
|
1319
1321
|
// todo - logic to check public and private
|
|
1320
1322
|
var self = this;
|
|
1321
1323
|
self
|
|
1322
|
-
.find(
|
|
1323
|
-
|
|
1324
|
+
.find(
|
|
1325
|
+
{ $or: [
|
|
1326
|
+
{'operating.acquired.private.by': orgid, 'deleted': {$ne: true} },
|
|
1327
|
+
{'operating.acquired.public.by': orgid, 'deleted': {$ne: true} },
|
|
1328
|
+
]}
|
|
1329
|
+
)
|
|
1324
1330
|
.select('name logoUrl')
|
|
1325
1331
|
.exec(cb);
|
|
1326
1332
|
};
|