@dhyasama/totem-models 7.38.0 → 7.40.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.
Files changed (2) hide show
  1. package/lib/Fund.js +2 -3
  2. package/package.json +1 -1
package/lib/Fund.js CHANGED
@@ -11,7 +11,7 @@ module.exports = function(mongoose, config) {
11
11
  name: { type: String, required: true, unique: true },
12
12
  slug: { type: String, required: true, unique: true },
13
13
  shortName: { type: String, required: true },
14
- abbreviation: { type: String, required: true },
14
+ abbreviation: { type: String },
15
15
  spv: { type: Boolean, default: false },
16
16
  hexColorCode: { type: String, required: true, default: '#cccccc' },
17
17
  closeDate: { type: Date },
@@ -152,8 +152,7 @@ module.exports = function(mongoose, config) {
152
152
  if (!query) return cb(null, []);
153
153
 
154
154
  var conditions = {
155
- 'name': new RegExp(query.query, "i"),
156
- 'deleted': {$ne: true}
155
+ 'name': new RegExp(query, "i")
157
156
  };
158
157
 
159
158
  this
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "7.38.0",
3
+ "version": "7.40.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",