Skip to content

Commit

Permalink
fix: robot webhook missing root object
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagi committed Jun 9, 2023
1 parent 90d3862 commit 30a57fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void sendMessage(RestTemplate restTemplate, String token, String secret,
ResponseEntity<Object> responseEntity = restTemplate.getForEntity(token, Object.class);
log.info("robot result: " + responseEntity.getBody());
} else {
Object content = messageTemplate.getValue(ctx);
Object content = messageTemplate.getValue(ctx, message);
ResponseEntity<Object> responseEntity = restTemplate.postForEntity(token, content, Object.class);
log.info("robot result: " + responseEntity.getBody());
}
Expand Down

0 comments on commit 30a57fc

Please sign in to comment.