@dhyasama/totem-models 6.21.4 → 6.21.5

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.
@@ -1326,6 +1326,8 @@ module.exports = function(mongoose, config) {
1326
1326
 
1327
1327
  var username = getUsername(value);
1328
1328
 
1329
+ if (!username) { return cb(null, []); }
1330
+
1329
1331
  self
1330
1332
  .find({ $or:
1331
1333
  [
package/lib/Person.js CHANGED
@@ -734,6 +734,8 @@ module.exports = function(mongoose, config) {
734
734
 
735
735
  var username = getUsername(value);
736
736
 
737
+ if (!username) { return cb(null, []); }
738
+
737
739
  self
738
740
  .find({ $or:
739
741
  [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "6.21.4",
3
+ "version": "6.21.5",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",