diff --git a/db/models/profile.js b/db/models/profile.js index 60a02f2..005a4c4 100644 --- a/db/models/profile.js +++ b/db/models/profile.js @@ -14,7 +14,8 @@ var profileSchema = new Schema({ commander: { type: Boolean, default: false } }, enslo: { type: Number, default: null }, - division: { type: String, default: null } + division: { type: String, default: null }, + skill: { type: String, default: null } }); profileSchema.path('userId').index({ unique: true }); @@ -38,7 +39,7 @@ profileSchema.method({ toJson: () => { let output = {}; output.abilities = this.abilities; - output.division = this.division; + output.skill = this.skill; return output; } }); diff --git a/lib/react/gather.jsx b/lib/react/gather.jsx index 111dcba..b0cffa8 100644 --- a/lib/react/gather.jsx +++ b/lib/react/gather.jsx @@ -633,8 +633,8 @@ var Gatherers = React.createClass({ alt={gatherer.user.country} />); }; - if (gatherer.user.profile.division) { - var division = ({gatherer.user.profile.division}); + if (gatherer.user.profile.skill) { + var skill = ({gatherer.user.profile.skill}); } var abilities = []; @@ -686,7 +686,7 @@ var Gatherers = React.createClass({
{gatherer.user.username}
-{country} {lifeform} {division} {team}
+{country} {lifeform} {skill} {team}
Try to give an accurate representation of your skill to raise the quality of your gathers