Skip to content

Commit

Permalink
[MM-42] Fix CI error: 'xyz' has 2 occurrences, make it a constant (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavaggarwal2308 authored Dec 20, 2023
1 parent 1005e33 commit d9e6123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ func (p *Plugin) handleValidateZoomWebhook(w http.ResponseWriter, r *http.Reques
var webhook zoom.ValidationWebhook
err := json.Unmarshal(body, &webhook)
if err != nil {
p.API.LogWarn("Failed to validate Zoom webhook: " + err.Error())
p.API.LogWarn("Failed to unmarshal Zoom webhook: " + err.Error())
w.WriteHeader(http.StatusBadRequest)
return
}

hash, err := createWebhookSignatureHash(config.ZoomWebhookSecret, webhook.Payload.PlainToken)
if err != nil {
p.API.LogWarn("Failed to validate Zoom webhook: " + err.Error())
p.API.LogWarn("Failed to create webhook signature hash: " + err.Error())
w.WriteHeader(http.StatusBadRequest)
return
}
Expand Down

0 comments on commit d9e6123

Please sign in to comment.