Procházet zdrojové kódy

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

Dave před 2 měsíci
rodič
revize
bf81e00c89

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