避免在没有输入的情况下,两个 null 键报错

This commit is contained in:
Alsotang 2013-12-24 17:08:45 +08:00
parent d8e2467bea
commit b7a978b4d7

View File

@ -14,7 +14,7 @@ var UserSchema = new Schema({
profile: { type: String },
weibo: { type: String },
avatar: { type: String },
githubId: { type: String, unique: true },
githubId: { type: String, index: true },
score: { type: Number, default: 0 },
topic_count: { type: Number, default: 0 },