Report fields added
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
||||
"git.gsuntres.com/general/mongo"
|
||||
)
|
||||
|
||||
func BuildInsertOne(col map[string]any) {
|
||||
func BuildInsertOne(col map[string]any, report *InitReport) {
|
||||
name := col["_name"].(string)
|
||||
singular := col["singular"].(string)
|
||||
|
||||
@@ -39,6 +39,8 @@ func BuildInsertOne(col map[string]any) {
|
||||
isSystem = v.(bool)
|
||||
}
|
||||
|
||||
report.AddField(insertOneName)
|
||||
|
||||
mc := mongo.GetMongoClient()
|
||||
|
||||
// we defer function's implementation until we create the actual struct
|
||||
|
||||
Reference in New Issue
Block a user