Fixed failing tests

This commit is contained in:
Adam Ding
2020-12-04 12:08:19 -05:00
parent 21277e1f76
commit 6ed94ea4e5
12 changed files with 74 additions and 26 deletions

View File

@@ -18,7 +18,7 @@ public class ChainGetter implements CallHandler {
@Override
public Object conductAction(Map<String, Object> bodyMap, HashMap<String, String> queryMap, String cognitoID) throws SQLException {
Integer id = Integer.parseInt(queryMap.get("id"));
Integer id = (Integer) bodyMap.get("id");
if (id == -1) {
PreparedStatement getChains = connection.prepareStatement(GET_CHAINS);
System.out.println(getChains);