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

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