3
0

Fix improper record filter construction

This commit is contained in:
Tomaž Jerman 2022-06-14 15:14:47 +02:00
parent 319ae7e375
commit c5482777aa
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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)