소스 검색

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