@dhyasama/totem-models 1.33.0 → 1.33.2

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.
@@ -881,7 +881,7 @@ module.exports = function(mongoose, config) {
881
881
  var self = this;
882
882
 
883
883
  self
884
- .find()
884
+ .find({'deleted': {$ne: true}})
885
885
  .select('name website websiteAliases')
886
886
  .lean()
887
887
  .exec(cb);
@@ -1180,15 +1180,6 @@ module.exports = function(mongoose, config) {
1180
1180
 
1181
1181
  };
1182
1182
 
1183
- Organization.statics.searchByDomain = function(domain, cb) {
1184
-
1185
- domain = utils.getDomain(domain);
1186
-
1187
- this
1188
- .find({ $or: [ { 'websiteAliases': domain }, {'website': domain} ], 'deleted': {$ne: true} })
1189
- .exec(cb);
1190
- };
1191
-
1192
1183
  Organization.statics.setCustomerFunds = function setCustomerFunds(fundids) {
1193
1184
  var self = this;
1194
1185
  self.customerFunds = fundids;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.33.0",
3
+ "version": "1.33.2",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",