@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 +12 -0
- package/package.json +1 -1
- package/.npmignore +0 -14
- package/package-lock.json +0 -1854
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