Skip to content

Commit

Permalink
connect module optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
benfiratkaya committed Nov 30, 2023
1 parent edf6856 commit 9a73e4e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public SocketClient(String apiKey, String serverToken) throws URISyntaxException
PostRequest postRequest = new PostRequest("command-logs/validate", formData);
JSONObject response = postRequest.getResponse().getResponseMessage();
JSONArray commandsJSON = response.getJSONArray("commands");
String username = response.getString("username");
String username = "";
List<String> commandsList = new ArrayList<>();

for (Object item : commandsJSON) {
Expand All @@ -86,6 +86,9 @@ public SocketClient(String apiKey, String serverToken) throws URISyntaxException

// Add command to list
commandsList.add(jsonItem.getString("command"));

// Get username
username = jsonItem.getString("username");
}
}

Expand Down

0 comments on commit 9a73e4e

Please sign in to comment.