Update analytics log collection index

Indexes already updated on live analytics database.
This commit is contained in:
Matt Lott 2015-05-02 18:28:47 -07:00
parent dce8005169
commit 1f7178bac7

View file

@ -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?