0x4a52466c696e74 il y a 4 mois
Parent
commit
64431c53c4
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  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...)
 }