diff --git a/apps/api/src/app/redis-cache/redis-cache.service.ts b/apps/api/src/app/redis-cache/redis-cache.service.ts index a720bd027..66c55f53b 100644 --- a/apps/api/src/app/redis-cache/redis-cache.service.ts +++ b/apps/api/src/app/redis-cache/redis-cache.service.ts @@ -19,16 +19,16 @@ export class RedisCacheService { } public async getKeys(aPrefix?: string): Promise { + const keys = []; const prefix = aPrefix; - const keyList = []; this.cache.stores[0].iterator((key) => { if ((prefix && key.startsWith(prefix)) || !prefix) { - keyList.push(key); + keys.push(key); } }); - return keyList; + return keys; } public getPortfolioSnapshotKey({