Skip to content

Commit 1e2d061

Browse files
authored
Merge pull request #2855 from objectcomputing/feature-2814/slack-pulse-response-media-type
Added the application form url encoded media type to the external…
2 parents b59208f + ba96d65 commit 1e2d061

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

server/src/main/java/com/objectcomputing/checkins/services/pulseresponse/PulseResponseController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public HttpResponse commandPulseResponse(
140140
}
141141

142142
@Secured(SecurityRule.IS_ANONYMOUS)
143-
@Post("/external")
143+
@Post(uri = "/external", consumes = MediaType.APPLICATION_FORM_URLENCODED)
144144
public HttpResponse<PulseResponse> externalPulseResponse(
145145
@Header("X-Slack-Signature") String signature,
146146
@Header("X-Slack-Request-Timestamp") String timestamp,

server/src/main/resources/slack/pulse_slack_blocks.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
},
7272
{
7373
"type": "input",
74+
"optional": true,
7475
"element": {
7576
"type": "plain_text_input",
7677
"action_id": "internalFeelings",
@@ -140,6 +141,7 @@
140141
},
141142
{
142143
"type": "input",
144+
"optional": true,
143145
"element": {
144146
"type": "plain_text_input",
145147
"action_id": "externalFeelings",

0 commit comments

Comments
 (0)