@dhyasama/totem-models 8.5.2 → 8.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/lib/LimitedPartner.js +5 -4
- package/package.json +1 -1
package/lib/LimitedPartner.js
CHANGED
|
@@ -526,7 +526,7 @@ module.exports = function(mongoose, config) {
|
|
|
526
526
|
if (err) { return cb(err, null); }
|
|
527
527
|
if (!lp) { return cb(null, null); }
|
|
528
528
|
|
|
529
|
-
Organization.
|
|
529
|
+
Organization.findById(options.CUSTOMER_ID, function(err, customer) {
|
|
530
530
|
|
|
531
531
|
if (err) { return cb(err, null); }
|
|
532
532
|
if (!customer) { return cb(null, null); }
|
|
@@ -551,10 +551,11 @@ module.exports = function(mongoose, config) {
|
|
|
551
551
|
|
|
552
552
|
});
|
|
553
553
|
|
|
554
|
+
// todo - fix sorting
|
|
554
555
|
return cb(null, {
|
|
555
|
-
all: helpers.sortPeopleSources(all, options.CUSTOMER_ID),
|
|
556
|
-
current: helpers.sortPeopleSources(current, options.CUSTOMER_ID),
|
|
557
|
-
past: helpers.sortPeopleSources(past, options.CUSTOMER_ID)
|
|
556
|
+
all: all, //helpers.sortPeopleSources(all, options.CUSTOMER_ID),
|
|
557
|
+
current: current, //helpers.sortPeopleSources(current, options.CUSTOMER_ID),
|
|
558
|
+
past: past //helpers.sortPeopleSources(past, options.CUSTOMER_ID)
|
|
558
559
|
});
|
|
559
560
|
|
|
560
561
|
});
|