Skip to content

Commit ba70a35

Browse files
committed
debugging...
1 parent 6bee92a commit ba70a35

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/request/request.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"net/http"
88
"strings"
99

10-
"github.com/codeshelldev/secured-signal-api/utils"
1110
"github.com/codeshelldev/secured-signal-api/utils/logger"
1211
"github.com/codeshelldev/secured-signal-api/utils/query"
1312
)
@@ -54,6 +53,8 @@ func CreateBody(data map[string]any) (Body, error) {
5453
}
5554

5655
func GetJsonData(body []byte) (map[string]any, error) {
56+
logger.Dev(string(body))
57+
5758
var data map[string]any
5859

5960
err := json.Unmarshal(body, &data)
@@ -133,8 +134,6 @@ func GetReqBody(w http.ResponseWriter, req *http.Request) (Body, error) {
133134
}
134135
}
135136

136-
logger.Dev(utils.ToJson(data))
137-
138137
isEmpty = len(data) <= 0
139138

140139
return Body{

0 commit comments

Comments
 (0)