Skip to content

Commit f20446d

Browse files
committed
fix wrong collection name
1 parent ede5c51 commit f20446d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/services/mongodb/MongoSalatPlugin.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ class MongoSalatPlugin(app: Application) extends Plugin {
118118
collection("collections").ensureIndex(MongoDBObject("author._id" -> 1))
119119
collection("collections").ensureIndex(MongoDBObject("stats" -> 1))
120120

121-
collection("collections").ensureIndex(MongoDBObject("file_id" -> 1))
122-
collection("collections").ensureIndex(MongoDBObject("dataset_id" -> 1))
123-
collection("collections").ensureIndex(MongoDBObject("comment_id" -> 1))
121+
collection("comments").ensureIndex(MongoDBObject("file_id" -> 1))
122+
collection("comments").ensureIndex(MongoDBObject("dataset_id" -> 1))
123+
collection("comments").ensureIndex(MongoDBObject("comment_id" -> 1))
124124

125125
collection("datasets").ensureIndex(MongoDBObject("created" -> -1))
126126
collection("datasets").ensureIndex(MongoDBObject("tags" -> 1))

0 commit comments

Comments
 (0)