mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2025-12-13 17:10:36 +00:00
Removed the buggy filter expand columns
This commit is contained in:
parent
490ae37c6d
commit
efb9e5d9d5
@ -2266,14 +2266,14 @@ func filterExtendedOptions(validator *common.ColumnValidator, options ExtendedRe
|
|||||||
filtered.ComputedQL = options.ComputedQL
|
filtered.ComputedQL = options.ComputedQL
|
||||||
|
|
||||||
// Filter Expand columns
|
// Filter Expand columns
|
||||||
filteredExpands := make([]ExpandOption, 0, len(options.Expand))
|
// filteredExpands := make([]ExpandOption, 0, len(options.Expand))
|
||||||
for _, expand := range options.Expand {
|
// for _, expand := range options.Expand {
|
||||||
filteredExpand := expand
|
// filteredExpand := expand
|
||||||
// Don't validate relation name, only columns
|
// // Don't validate relation name, only columns
|
||||||
filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
|
// filteredExpand.Columns = validator.FilterValidColumns(expand.Columns)
|
||||||
filteredExpands = append(filteredExpands, filteredExpand)
|
// filteredExpands = append(filteredExpands, filteredExpand)
|
||||||
}
|
// }
|
||||||
filtered.Expand = filteredExpands
|
// filtered.Expand = filteredExpands
|
||||||
|
|
||||||
return filtered
|
return filtered
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user