Skip to content

Commit

Permalink
fix: rename model
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamch committed Apr 1, 2024
1 parent 45ac72e commit 663f1b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apimodels/register.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package apimodels

type RegisterVolunteerModel struct {
type RegisterVolunteer struct {
EventID int `json:"eventId"`
VolunteerID int `json:"volunteerId"`
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func bind(e *echo.Echo, eventStore store.EventStore) {
})

e.POST("/api/event/register", func(c echo.Context) error {
registerReq := new(apimodels.RegisterVolunteerModel)
registerReq := new(apimodels.RegisterVolunteer)
if err := c.Bind(registerReq); err != nil {
return c.JSON(http.StatusBadRequest, err)
}
Expand Down

0 comments on commit 663f1b3

Please sign in to comment.