mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Add index to analytics.log.event
This commit is contained in:
parent
947811c01b
commit
7052dd99f5
1 changed files with 1 additions and 0 deletions
|
@ -6,5 +6,6 @@ AnalyticsLogEventSchema = new mongoose.Schema({
|
|||
type: Date
|
||||
'default': Date.now
|
||||
}, {strict: false})
|
||||
AnalyticsLogEventSchema.index({event: 1, created: -1})
|
||||
|
||||
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)
|
||||
|
|
Loading…
Reference in a new issue