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 BuildGetOne(col map[string]any) {
func BuildGetOne(col map[string]any, report *InitReport) {
name := col["_name"].(string)
singular := col["singular"].(string)
@@ -39,6 +39,8 @@ func BuildGetOne(col map[string]any) {
isSystem = v.(bool)
}
report.AddField(funcName)
mc := mongo.GetMongoClient()
// we defer function's implementation until we create the actual struct