add datamodel ; check if zipcode is participating

This commit is contained in:
GotPPay
2018-05-18 21:38:17 +02:00
parent 78d6a45ebb
commit d6301ebbf3
3 changed files with 4 additions and 4 deletions

View File

@@ -340,7 +340,6 @@ func (c *controller) handleGetPortal(ctx echo.Context) error {
}
func (c *controller) handleMember(ctx echo.Context) error {
fmt.Println("\n\nHandle member\n\n")
var user viewmodel.User
if err := ctx.Bind(&user); err != nil {
return routeutils.HandleAPIError(ctx, err)
@@ -502,8 +501,6 @@ func (c *controller) handleMember(ctx echo.Context) error {
}
}
//Get ZIP code and check if it is participating
user, err = c.svc.Users.Create(user, authUser)
if err != nil {
return routeutils.HandleAPIError(ctx, err)