diff --git a/sam/rest/request/team.go b/sam/rest/request/team.go index 9f7a88905..b5fcd664b 100644 --- a/sam/rest/request/team.go +++ b/sam/rest/request/team.go @@ -297,8 +297,8 @@ var _ RequestFiller = NewTeamArchive() // Team move request parameters type TeamMove struct { - TeamID uint64 - Organisation_id uint64 + TeamID uint64 + OrganisationID uint64 } func NewTeamMove() *TeamMove { @@ -332,9 +332,9 @@ func (t *TeamMove) Fill(r *http.Request) error { } t.TeamID = parseUInt64(chi.URLParam(r, "teamID")) - if val, ok := post["organisation_id"]; ok { + if val, ok := post["organisationID"]; ok { - t.Organisation_id = parseUInt64(val) + t.OrganisationID = parseUInt64(val) } return err diff --git a/sam/rest/team.go b/sam/rest/team.go index 0284adbf3..ed4558296 100644 --- a/sam/rest/team.go +++ b/sam/rest/team.go @@ -64,5 +64,5 @@ func (ctrl *Team) Merge(ctx context.Context, r *request.TeamMerge) (interface{}, } func (ctrl *Team) Move(ctx context.Context, r *request.TeamMove) (interface{}, error) { - return nil, ctrl.svc.team.With(ctx).Move(r.TeamID, r.Organisation_id) + return nil, ctrl.svc.team.With(ctx).Move(r.TeamID, r.OrganisationID) }