From 636ae84997c593d6633743124154b04d45d3968e Mon Sep 17 00:00:00 2001 From: porosnicuadrian Date: Fri, 27 Aug 2021 17:08:31 +0300 Subject: [PATCH] Adde pointer when call-cache from apiopts --- apier/v1/libapier.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apier/v1/libapier.go b/apier/v1/libapier.go index 34400de43..309858a05 100644 --- a/apier/v1/libapier.go +++ b/apier/v1/libapier.go @@ -172,7 +172,7 @@ func (apierSv1 *APIerSv1) callCacheForRemoveIndexes(cacheopt string, tnt, cacheI method = utils.CacheSv1RemoveItems case utils.MetaClear: method = utils.CacheSv1Clear - args = utils.AttrCacheIDsWithAPIOpts{ + args = &utils.AttrCacheIDsWithAPIOpts{ Tenant: tnt, CacheIDs: []string{cacheID}, APIOpts: opts, @@ -201,7 +201,7 @@ func (apierSv1 *APIerSv1) callCacheForComputeIndexes(cacheopt, tnt string, for idx := range cacheItems { cacheIDs = append(cacheIDs, idx) } - args = utils.AttrCacheIDsWithAPIOpts{ + args = &utils.AttrCacheIDsWithAPIOpts{ Tenant: tnt, CacheIDs: cacheIDs, APIOpts: opts,