From a695daa03f5d6375edc230dd82b745db00a8786f Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Thu, 4 Jun 2015 13:09:22 -0700 Subject: [PATCH] add default empty array to user.completedChallenges --- common/models/user.json | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/common/models/user.json b/common/models/user.json index 796d251098f..1cb7a4d2032 100644 --- a/common/models/user.json +++ b/common/models/user.json @@ -149,19 +149,22 @@ }, "challengesHash": {}, "currentChallenge": {}, - "completedChallenges": [{ - "completedDate": "number", - "_id": "string", - "name": "string", - "completedWith": "string", - "solution": "string", - "githubLink": "string", - "verified": "boolean", - "challengeType": { - "type": "number", - "default": 0 - } - }], + "completedChallenges": { + "type": [{ + "completedDate": "number", + "_id": "string", + "name": "string", + "completedWith": "string", + "solution": "string", + "githubLink": "string", + "verified": "boolean", + "challengeType": { + "type": "number", + "default": 0 + } + }], + "default": [] + }, "uncompletedChallenges": "array" }, "validations": [],