Fix improper record filter construction
This commit is contained in:
parent
319ae7e375
commit
c5482777aa
@ -91,9 +91,9 @@ const (
|
||||
OperationTypeUpdate OperationType = "update"
|
||||
OperationTypeDelete OperationType = "delete"
|
||||
|
||||
recordFieldID = "id"
|
||||
recordFieldModuleID = "moduleId"
|
||||
recordFieldNamespaceID = "namespaceId"
|
||||
recordFieldID = "ID"
|
||||
recordFieldModuleID = "moduleID"
|
||||
recordFieldNamespaceID = "namespaceID"
|
||||
)
|
||||
|
||||
// ToFilter wraps RecordFilter with struct that
|
||||
|
||||
@ -232,9 +232,9 @@ func (d *model) searchSql(f filter.Filter) *goqu.SelectDataset {
|
||||
}
|
||||
|
||||
// @note why?
|
||||
if !attr.PrimaryKey {
|
||||
continue
|
||||
}
|
||||
// if !attr.PrimaryKey {
|
||||
// continue
|
||||
// }
|
||||
|
||||
var attrExpr exp.LiteralExpression
|
||||
attrExpr, err = d.table.AttributeExpression(attr.Ident)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user