This commit is contained in:
2023-06-11 16:38:47 +02:00
parent ee262a94fb
commit 2569c165f8
2 changed files with 3 additions and 3 deletions

View File

@@ -75,8 +75,8 @@ func (c *Coll[TData]) initFields(prefix string, rval reflect.Value, m map[string
continue
}
if strings.Contains(bsonkey, ",") {
bsonkey = bsonkey[:strings.Index(bsonkey, ",")]
bsontags = strings.Split(bsonkey[strings.Index(bsonkey, ",")+1:], ",")
bsonkey = bsonkey[:strings.Index(bsonkey, ",")]
}
if bsonkey == "-" {
continue