Update field guides to display properly. Correct models on user object.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -169,10 +169,12 @@
|
||||
"default": []
|
||||
},
|
||||
"completedFieldGuides": {
|
||||
"type": []
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"uncompletedFieldGuides": {
|
||||
"type": []
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"currentStreak": {
|
||||
"type": "number",
|
||||
|
Reference in New Issue
Block a user