@dhyasama/totem-models 1.26.0 → 1.26.1

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/Fund.js CHANGED
@@ -12,6 +12,7 @@ module.exports = function(mongoose, config) {
12
12
  name: { type: String, required: true, unique: true },
13
13
  slug: { type: String, required: true, unique: true },
14
14
  shortName: { type: String, required: true },
15
+ abbreviation: { type: String, required: true },
15
16
  spv: { type: Boolean, default: false },
16
17
  hexColorCode: { type: String, required: true, default: '#cccccc' },
17
18
  closeDate: { type: Date },
package/lib/Round.js CHANGED
@@ -560,7 +560,8 @@ module.exports = function(mongoose, config) {
560
560
  .exec(function(err, rounds) {
561
561
 
562
562
  if (err) return cb(err, null);
563
- if (!rounds || rounds.length == 0) return cb(null, null);
563
+ else if (!rounds) return cb(null, null);
564
+ else if(rounds.length == 0) return cb(null, []);
564
565
 
565
566
  rounds = filterVehicles(rounds, [fundId]);
566
567
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",