mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
避免在没有输入的情况下,两个 null 键报错
This commit is contained in:
parent
d8e2467bea
commit
b7a978b4d7
@ -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 },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user