Skip to content

Commit d5f5d09

Browse files
committed
rm validatory that cause error
1 parent 1dee1d4 commit d5f5d09

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cmd/api/payroll.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,6 @@ func (app *application) updatePayrollHandler(c echo.Context) error {
290290
return err
291291
}
292292

293-
if err := app.validator.Struct(input); err != nil {
294-
return c.JSON(http.StatusBadRequest, map[string]string{"error": err.Error()})
295-
}
296-
297293
e, err := app.store.GetPayrollByID(c.Request().Context(), payroll_id)
298294

299295
if err != nil {

0 commit comments

Comments
 (0)