mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Add redeemers.userID index to prepaids collection
This commit is contained in:
parent
c3735ba0eb
commit
7a237d27c2
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ config = require '../../server_config'
|
|||
PrepaidSchema = new mongoose.Schema {}, {strict: false, minimize: false,read:config.mongo.readpref}
|
||||
|
||||
PrepaidSchema.index({code: 1}, { unique: true })
|
||||
PrepaidSchema.index({'redeemers.userID': 1})
|
||||
|
||||
PrepaidSchema.statics.generateNewCode = (done) ->
|
||||
tryCode = ->
|
||||
|
|
Loading…
Reference in a new issue