Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
radiantspace committed May 24, 2024
1 parent 779d0cb commit 034a3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/payments/stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func StripeWebhook(ctx *fasthttp.RequestCtx) {
ctx.Response.Header.SetStatusCode(http.StatusBadRequest) // Return a 400 error on a bad signature
return
}
config.CONFIG.DataDogClient.Incr("stripe.webhook", []string{"event_type:" + event.Type}, 1)
config.CONFIG.DataDogClient.Incr("stripe.webhook", []string{"event_type:" + string(event.Type)}, 1)

// Unmarshal the event data into an appropriate struct depending on its Type
switch event.Type {
Expand Down

0 comments on commit 034a3d8

Please sign in to comment.