From 4d45eca5032fcf7802e13e5bd4d5c8daa6155ace Mon Sep 17 00:00:00 2001 From: barsa Date: Tue, 18 Nov 2025 15:20:52 +0900 Subject: [PATCH] Fix memory usage command in CacheService and add support directory to package.json - Updated the memory command in CacheService from "usage" to "USAGE" for consistency with Redis commands. - Added support directory paths to package.json to enhance module resolution for the support features. --- apps/bff/src/infra/cache/cache.service.ts | 2 +- packages/domain/package.json | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/bff/src/infra/cache/cache.service.ts b/apps/bff/src/infra/cache/cache.service.ts index 10bdd8f8..47fd8b3a 100644 --- a/apps/bff/src/infra/cache/cache.service.ts +++ b/apps/bff/src/infra/cache/cache.service.ts @@ -82,7 +82,7 @@ export class CacheService { await this.scanPattern(pattern, async keys => { const pipeline = this.redis.pipeline(); keys.forEach(key => { - pipeline.memory("usage", key); + pipeline.memory("USAGE", key); }); const results = await pipeline.exec(); if (!results) { diff --git a/packages/domain/package.json b/packages/domain/package.json index a2962ba6..4e9f77b2 100644 --- a/packages/domain/package.json +++ b/packages/domain/package.json @@ -30,6 +30,8 @@ "./sim/providers/freebit": "./dist/sim/providers/freebit/index.js", "./subscriptions": "./dist/subscriptions/index.js", "./subscriptions/*": "./dist/subscriptions/*.js", + "./support": "./dist/support/index.js", + "./support/*": "./dist/support/*.js", "./toolkit": "./dist/toolkit/index.js", "./toolkit/*": "./dist/toolkit/*.js" },