fix: resolved comments

This commit is contained in:
mayur.popli
2025-03-26 12:05:58 +05:30
parent dfa03cb9f1
commit 77ff194386
3 changed files with 17 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ type Config struct {
Role string
}
type BecknRequest struct {
type becknRequest struct {
Context map[string]any `json:"context"`
}
@@ -37,7 +37,7 @@ func NewUUIDSetter(cfg *Config) (func(http.Handler) http.Handler, error) {
http.Error(w, "Failed to read request body", http.StatusInternalServerError)
return
}
var req BecknRequest
var req becknRequest
if err := json.Unmarshal(body, &req); err != nil {
http.Error(w, "Failed to decode request body", http.StatusBadRequest)
return