Browse Source

fields -> Fields

0x4a52466c696e74 3 months ago
parent
commit
1a0a023881
2 changed files with 2 additions and 2 deletions
  1. 1 1
      rest_http/request_in.go
  2. 1 1
      rest_websocket/request.go

+ 1 - 1
rest_http/request_in.go

@@ -30,5 +30,5 @@ func (s *RequestIn) OutError(err rest.IErrorArgs) rest.IRequestOut {
 }
 
 func (s *RequestIn) Fields() rest.FieldList {
-	return rest.FieldListFromSlice(s.RData().Slice("fields", nil))
+	return rest.FieldListFromSlice(s.RData().Slice("Fields", nil))
 }

+ 1 - 1
rest_websocket/request.go

@@ -45,7 +45,7 @@ func (s *RequestIn) SetClientData(key string, data any) {
 }
 
 func (s *RequestIn) Fields() rest.FieldList {
-	return rest.FieldListFromSlice(s.RData().Slice("fields", nil))
+	return rest.FieldListFromSlice(s.RData().Slice("Fields", nil))
 }
 
 func (s *RequestIn) OutSuccess(data json.Map, files rest.RequestFiles) rest.IRequestOut {