Skip to content

Commit

Permalink
fix: parse the correct object (#4291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pil0tXia committed Jul 27, 2023
1 parent 3652000 commit 4e8505b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void handle(HttpExchange httpExchange) throws IOException {
JsonNode node = JsonUtils.getJsonNode(NetUtils.parsePostBody(httpExchange));
Objects.requireNonNull(node, "JsonNode can not be null");

WebHookConfig webHookConfig = JsonUtils.parseObject(node.get("webHookConfig").toString(), WebHookConfig.class);
WebHookConfig webHookConfig = JsonUtils.parseObject(node.toString(), WebHookConfig.class);
Integer pageNum = Integer.valueOf(node.get("pageNum").toString());
Integer pageSize = Integer.valueOf(node.get("pageSize").toString());

Expand Down

0 comments on commit 4e8505b

Please sign in to comment.