Cleaned code

This commit is contained in:
edwardro22
2018-01-21 19:59:55 +02:00
committed by Dan Christian Bogos
parent ed5851f3f2
commit 43bd9bbbf5
2 changed files with 1 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ func matchingItemIDsForEvent(ev map[string]interface{}, fieldIDs []string,
}
}
}
dbItemIDs, err := dm.MatchFilterIndex(dbIdxKey, filterType, utils.NOT_AVAILABLE, utils.NOT_AVAILABLE) // add unindexed itemIDs to be checked
dbItemIDs, err := dm.MatchFilterIndex(dbIdxKey, utils.MetaDefault, utils.NOT_AVAILABLE, utils.NOT_AVAILABLE) // add unindexed itemIDs to be checked
if err != nil {
if err != utils.ErrNotFound {
return nil, err

View File

@@ -221,7 +221,6 @@ func (tS *ThresholdService) matchingThresholdsForEvent(args *ArgsProcessEvent) (
} else {
tIDsMap, err := matchingItemIDsForEvent(args.Event, tS.indexedFields, tS.dm, utils.ThresholdStringIndex+args.Tenant, MetaString)
if err != nil {
utils.Logger.Debug(fmt.Sprintf("here gets NOTFOUND"))
return nil, err
}
tIDs = tIDsMap.Slice()