@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.
@@ -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.collection.findById(options.CUSTOMER_ID, function(err, customer) {
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.5.2",
3
+ "version": "8.5.4",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",