fix: filter event_data (#2011)

This commit is contained in:
Livio Amstutz 2021-07-12 16:26:54 +02:00 committed by GitHub
parent b1c26c12ab
commit 7ebf0333c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,9 +141,11 @@ func prepareCondition(criteria querier, filters [][]*repository.Filter) (clause
case map[string]interface{}: case map[string]interface{}:
var err error var err error
value, err = json.Marshal(value) value, err = json.Marshal(value)
logging.Log("SQL-BSsNy").OnError(err).Warn("unable to marshal search value") if err != nil {
logging.Log("SQL-BSsNy").WithError(err).Warn("unable to marshal search value")
continue continue
} }
}
subClauses = append(subClauses, getCondition(criteria, f)) subClauses = append(subClauses, getCondition(criteria, f))
if subClauses[len(subClauses)-1] == "" { if subClauses[len(subClauses)-1] == "" {