Skip to content

Commit

Permalink
πŸ› Report parsing unable bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
νŽœνƒ€κ³€ authored and νŽœνƒ€κ³€ committed Apr 1, 2024
1 parent 6da3ffc commit e56b515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/reportctrl/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type ReportRequest struct {
}

func SendReportCtrl(c *fiber.Ctx) error {
body := ReportRequest{}
body := new(ReportRequest)
if errArr := validator.ParseAndValidate(c, body); errArr != nil {
return c.Status(400).JSON(fiber.Map{
"error": errArr,
Expand Down

0 comments on commit e56b515

Please sign in to comment.