soreLatestEntry: void

This commit is contained in:
adb 2021-03-17 08:46:41 +01:00
parent 8063c611da
commit ac1c027a17

View File

@ -31,11 +31,10 @@ public class DataStoreBot {
}
}, 0, seconds, TimeUnit.SECONDS);
}
public Runnable storeLatestEntry() throws IOException, ParseException {
public void storeLatestEntry() throws IOException, ParseException {
JSONArray APIData = this.api.getJSONObject();
JSONObject entry = (JSONObject) APIData.get(0);
this.storeEntry(entry);
return null;
}
public void storeEntry(JSONObject entry) throws IOException {
System.out.println("entry => ");