Skip to content

Commit a66da3f

Browse files
committed
Scala 2.12.2 findByID updated
1 parent 6957ef2 commit a66da3f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name := "simple-mongo"
33

44
organization := "com.sfxcode.nosql"
55

6-
version := "0.9.0"
6+
version := "0.9.1"
77

8-
crossScalaVersions := Seq( "2.12.1","2.11.8")
8+
crossScalaVersions := Seq( "2.12.2","2.11.10")
99

10-
scalaVersion := "2.12.1"
10+
scalaVersion := "2.12.2"
1111

1212
scalacOptions += "-deprecation"
1313

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.13
1+
sbt.version=0.13.15

src/main/scala/com/sfxcode/nosql/mongo/operation/Search.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ abstract class Search[A]()(implicit ct: ClassTag[A]) extends Crud[A] {
1616
def findById(oid: Any): FindObservable[A] = {
1717
oid match {
1818
case objectId: ObjectId => find(equal("_id", objectId))
19-
case _ => find(equal("_id", oid.toString))
19+
case _ => find(equal("_id", new ObjectId(oid.toString)))
2020
}
2121
}
2222

0 commit comments

Comments
 (0)