Adde pointer when call-cache from apiopts

This commit is contained in:
porosnicuadrian
2021-08-27 17:08:31 +03:00
committed by Dan Christian Bogos
parent 04f64e5a66
commit 636ae84997

View File

@@ -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,