diff --git a/pom.xml b/pom.xml
index 8cb9b8d..0e927f3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,7 +76,7 @@
com.rethinkdb
rethinkdb-driver
- 2.4.1.1
+ 2.4.0
org.slf4j
@@ -91,7 +91,7 @@
org.kohsuke
github-api
- 1.108
+ 1.107
com.sedmelluq
diff --git a/src/main/java/com/bbn/hadder/Rethink.java b/src/main/java/com/bbn/hadder/Rethink.java
index d1e3c3f..aeaaf58 100644
--- a/src/main/java/com/bbn/hadder/Rethink.java
+++ b/src/main/java/com/bbn/hadder/Rethink.java
@@ -53,7 +53,7 @@ public class Rethink {
private JSONArray getAsArray(String table, String where, String value) {
try {
- String string = r.table(table).filter(row -> row.g(where.toLowerCase()).eq(value)).coerceTo("array").toJson().run(conn).toString();
+ String string = r.table(table).filter(row -> row.g(where.toLowerCase()).eq(value)).coerceTo("array").toJson().run(conn);
return new JSONArray(string);
} catch (NoSuchElementException e) {
return null;
@@ -77,7 +77,7 @@ public class Rethink {
}
public JSONObject getObjectByID(String table, String id) {
- String response = r.table(table).get(id).toJson().run(conn).toString();
+ String response = r.table(table).get(id).toJson().run(conn);
return new JSONObject(response);
}