Skip to content

Commit 552ca11

Browse files
committed
add index
1 parent ae0c3e7 commit 552ca11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/user.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,6 @@ UserSchema.index({loginname: 1}, {unique: true});
5959
UserSchema.index({email: 1}, {unique: true});
6060
UserSchema.index({score: -1});
6161
UserSchema.index({githubId: 1});
62+
UserSchema.index({accessToken: 1});
6263

6364
mongoose.model('User', UserSchema);

0 commit comments

Comments
 (0)