Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KranjQ committed Dec 16, 2024
1 parent 47b130b commit 869f0ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) {
return
}
h.logger.Info("price", zap.Any("price", price))
payerID, err := strconv.Atoi(jsonData["description"].(string))
payerID, err := strconv.Atoi(object["description"].(string))
if err != nil {
h.logger.Error("parse json payer id", zap.Error(err))
http.Error(w, "parse json error", http.StatusBadRequest)
Expand Down

0 comments on commit 869f0ff

Please sign in to comment.