Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit e012009

Browse files
author
gclaramunt
committed
add database name to precog ingest path
1 parent 086bb69 commit e012009

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/import/mongodb/src/main/scala/com/precog/tools/importers/mongo

tools/import/mongodb/src/main/scala/com/precog/tools/importers/mongo/ImportMongo.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ object ImportMongo {
8686
}
8787
val (fds, fmaxId) = (fdsid map (_._1), fdsid map (_._2))
8888
val fjsons = fds.map(_.flatMap(MongoToJson(_).toStream))
89-
val fullPath = "%s/ingest/v1/sync/fs%s/%s".format(precogHost, basePath, collName)
89+
val fullPath = "%s/ingest/v1/sync/fs%s/%s/%s".format(precogHost, basePath, dbName, collName)
9090
val data = StreamT.fromStream[Future, JValue](fjsons)
9191
val fresult = M.lift2((a: HttpResponse[ByteChunk], b: ObjectId) => (a, b))(sendToPrecog(fullPath, apiKey, data), fmaxId)
9292

0 commit comments

Comments
 (0)