. #403

Merged
greg6775 merged 12 commits from master into greg-dev 2020-03-13 22:18:17 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 94b89ede03 - Show all commits

View file

@ -76,7 +76,7 @@
<dependency>
<groupId>com.rethinkdb</groupId>
<artifactId>rethinkdb-driver</artifactId>
<version>2.4.1.1</version>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
@ -91,7 +91,7 @@
<dependency>
<groupId>org.kohsuke</groupId>
<artifactId>github-api</artifactId>
<version>1.108</version>
<version>1.107</version>
</dependency>
<dependency>
<groupId>com.sedmelluq</groupId>

View file

@ -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);
}