diff --git a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java index 7b7caba..60a11bb 100644 --- a/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java +++ b/src/main/java/sh/adb/sensorCommunityAPI/DataStoreBot.java @@ -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 => ");