Report fields added

This commit is contained in:
George Suntres
2026-04-07 15:43:01 -04:00
parent b0f2914019
commit bc28dd7354
6 changed files with 34 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ import (
"git.gsuntres.com/general/mongo"
)
func BuildFind(col map[string]any) {
func BuildFind(col map[string]any, report *InitReport) {
name := col["_name"].(string)
plural := col["plural"].(string)
@@ -40,6 +40,8 @@ func BuildFind(col map[string]any) {
isSystem = v.(bool)
}
report.AddField(funcName)
mc := mongo.GetMongoClient()
// we defer function's implementation until we create the actual struct