Update field guides to display properly. Correct models on user object.

This commit is contained in:
terakilobyte
2015-06-11 16:19:44 -04:00
parent 0aa83f1bb9
commit f7bb14803e
5 changed files with 62 additions and 53 deletions

View File

@@ -7,7 +7,7 @@ module.exports = function(UserIdent) {
UserIdent.observe('before save', function(ctx, next) {
var userIdent = ctx.currentInstance || ctx.instance;
if (userIdent) {
if (!userIdent) {
debug('no user identity instance found');
return next();
}

View File

@@ -169,10 +169,12 @@
"default": []
},
"completedFieldGuides": {
"type": []
"type": "array",
"default": []
},
"uncompletedFieldGuides": {
"type": []
"type": "array",
"default": []
},
"currentStreak": {
"type": "number",