0x4a52466c696e74 4 meses atrás
pai
commit
64431c53c4
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      fielder.go

+ 3 - 3
fielder.go

@@ -276,12 +276,11 @@ func FieldNames(s any) (FieldNamesList, error) {
 
 /////////////////////////////////////////////
 
-func OutFileds(req IRequestIn, obj any, files RequestFiles, names ...any) IRequestOut {
+func OutFields(req IRequestIn, obj any, files RequestFiles, names ...any) IRequestOut {
 	m, err := Fields(obj, files, names...)
 	if err != nil {
 		return req.OutError(err)
 	}
-	log.Println("NAMES....", names)
 	return req.OutSuccess(m, files)
 }
 
@@ -289,5 +288,6 @@ func OutFieldsReq(req IRequestIn, obj any, files RequestFiles, names ...any) IRe
 	if len(names) == 0 {
 		names = req.RData().Slice("fields", nil)
 	}
-	return OutFileds(req, obj, files, names...)
+	log.Println("NAMES....", names)
+	return OutFields(req, obj, files, names...)
 }