Update query parameter in FieldsDSL and DSL

This commit is contained in:
Max 2024-02-03 21:29:59 +08:00
parent 5202f4cca3
commit 25d83cb5cc
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ func (fields *FieldsDSL) Xgen(layout *LayoutDSL, query map[string]interface{}) (
messages := []string{}
replacements := maps.Map{}
if query != nil {
replacements = maps.Of(map[string]interface{}{"$parent": query}).Dot()
replacements = maps.Of(map[string]interface{}{"$props": query}).Dot()
}
if layout.List != nil && layout.List.Columns != nil {

View file

@ -241,7 +241,7 @@ func (dsl *DSL) Xgen(data map[string]interface{}, excludes map[string]bool, quer
replacements := maps.Map{}
if query != nil {
replacements = maps.Of(map[string]interface{}{"$parent": query}).Dot()
replacements = maps.Of(map[string]interface{}{"$props": query}).Dot()
}
for _, cProp := range dsl.CProps {