@dhyasama/totem-models 8.55.0 → 8.55.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.
Files changed (2) hide show
  1. package/lib/Person.js +2 -1
  2. package/package.json +1 -1
package/lib/Person.js CHANGED
@@ -138,7 +138,8 @@ module.exports = function(mongoose, config) {
138
138
 
139
139
  Person.virtual('name.full').get(function () {
140
140
  var name = '';
141
- if(this.name.first) name += this.name.first
141
+ if(this.name.first) name += this.name.first;
142
+ if(this.name.first && this.name.last) name += ' ';
142
143
  if(this.name.last) name += this.name.last;
143
144
  return name;
144
145
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "8.55.0",
3
+ "version": "8.55.1",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",