mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Update analytics log collection index
Indexes already updated on live analytics database.
This commit is contained in:
parent
dce8005169
commit
1f7178bac7
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ AnalyticsLogEventSchema = new mongoose.Schema({
|
|||
|
||||
AnalyticsLogEventSchema.index({event: 1, _id: -1})
|
||||
AnalyticsLogEventSchema.index({event: 1, 'properties.level': 1})
|
||||
AnalyticsLogEventSchema.index({user: 1})
|
||||
AnalyticsLogEventSchema.index({user: 1, event: 1})
|
||||
|
||||
AnalyticsLogEventSchema.statics.logEvent = (user, event, properties={}) ->
|
||||
unless user?
|
||||
|
|
Loading…
Reference in a new issue