This commit is contained in:
GregTCLTK 2020-05-13 18:18:01 +02:00
parent 0e20bcfc9a
commit 66f90d3560
No known key found for this signature in database
GPG key ID: A91BADE5C070FF67
3 changed files with 4 additions and 4 deletions

View file

@ -140,7 +140,7 @@ public class Rethink {
}
}
public void pushServer(RethinkServer server) {
public void push(RethinkServer server) {
JSONObject object = new JSONObject();
for (Field field : server.getClass().getDeclaredFields()) {
if (!field.getName().equals("rethink")) {
@ -154,7 +154,7 @@ public class Rethink {
r.table("server").get(server.getId()).update(object.toMap()).run(conn);
}
public void pushUser(RethinkUser user) {
public void push(RethinkUser user) {
JSONObject object = new JSONObject();
for (Field field : user.getClass().getDeclaredFields()) {
if (!field.getName().equals("rethink")) {

View file

@ -128,6 +128,6 @@ public class RethinkServer {
}
public void push() {
rethink.pushServer(this);
rethink.push(this);
}
}

View file

@ -76,6 +76,6 @@ public class RethinkUser {
}
public void push() {
rethink.pushUser(this);
rethink.push(this);
}
}