ソースを参照

feat(cache): filter categories to include only active ones in cache sync

Dave 2 ヶ月 前
コミット
bf81e00c89
1 ファイル変更1 行追加0 行削除
  1. 1 0
      apps/box-mgnt-api/src/cache-sync/cache-sync.service.ts

+ 1 - 0
apps/box-mgnt-api/src/cache-sync/cache-sync.service.ts

@@ -396,6 +396,7 @@ export class CacheSyncService {
     const categories = await this.mongoPrisma.category.findMany({
       where: {
         // isDeleted: false,
+        status: 1, // only active categories
       },
       orderBy: {
         seq: 'asc',