Skip to content

Commit

Permalink
updated stater
Browse files Browse the repository at this point in the history
  • Loading branch information
gopherus committed Aug 2, 2023
1 parent 6d61217 commit f4596d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/stater.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (s *Stater) newUpdater(ctx context.Context, dstType reflect.Type) (*stateUp
}

func (u *stateUpdater) update(ctx context.Context, request *http.Request, route *Route, dest interface{}, params *RequestParams) error {
paramBuilder := newParamStateBuilder(nil, *route._caser, route.DateFormat, NewRequestMetadata(route), params, newParamsValueCache(), u.paramsIndex)
paramBuilder := newParamStateBuilder(route._resource, *route._caser, route.DateFormat, NewRequestMetadata(route), params, newParamsValueCache(), u.paramsIndex)

state := &view.ParamState{
Values: dest,
Expand Down

0 comments on commit f4596d5

Please sign in to comment.