@dhyasama/totem-models 5.0.2 → 5.1.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/Person.js CHANGED
@@ -748,6 +748,18 @@ module.exports = function(mongoose, config) {
748
748
  .exec(cb);
749
749
  };
750
750
 
751
+ Person.statics.getList = function getList(cb) {
752
+
753
+ var self = this;
754
+
755
+ self
756
+ .find({'deleted': {$ne: true}})
757
+ .select('name contact.email')
758
+ .lean()
759
+ .exec(cb);
760
+
761
+ };
762
+
751
763
  Person.statics.getFlags = function getFlags(personId, cb) {
752
764
 
753
765
  var self = this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "5.0.2",
3
+ "version": "5.1.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",
package/.npmignore DELETED
@@ -1,14 +0,0 @@
1
- lib-cov
2
- *.seed
3
- *.log
4
- *.csv
5
- *.dat
6
- *.out
7
- *.pid
8
- *.gz
9
-
10
- npm-debug.log
11
- node_modules
12
-
13
- .DS_Store
14
- .idea