summaryrefslogtreecommitdiff
path: root/lib/rbot/journal/mongo.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/journal/mongo.rb')
-rw-r--r--lib/rbot/journal/mongo.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/journal/mongo.rb b/lib/rbot/journal/mongo.rb
index 2e735587..a03355f9 100644
--- a/lib/rbot/journal/mongo.rb
+++ b/lib/rbot/journal/mongo.rb
@@ -28,7 +28,7 @@ module Journal
@collection.indexes.create_one({timestamp: 1})
end
- def ensure_index(key)
+ def ensure_payload_index(key)
@collection.indexes.create_one({'payload.'+key => 1})
end