瀏覽代碼

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