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