From 004a91a6a65b8d6495d9c1dc39fbce86be51f4ef Mon Sep 17 00:00:00 2001 From: ionutboangiu Date: Tue, 8 Mar 2022 18:17:00 +0200 Subject: [PATCH] Update GetIntPointerOpts function to return NOT_FOUND when none of the filters pass --- engine/libfilters.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/libfilters.go b/engine/libfilters.go index db26d02ce..675f46fa4 100644 --- a/engine/libfilters.go +++ b/engine/libfilters.go @@ -262,7 +262,7 @@ func GetIntPointerOpts(ctx *context.Context, tnt string, ev *utils.CGREvent, fS return opt.Value, nil } } - return nil, nil // return NOT_FOUND if there are no options and none of the filters pass + return nil, utils.ErrNotFound // return NOT_FOUND if there are no options and none of the filters pass } // GetDurationPointerOptsFromMultipleMaps checks the specified option names in order among the keys in APIOpts, then in startOpts, returning the first value it finds as *time.Duration,