Selaa lähdekoodia

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

Dave 2 kuukautta sitten
vanhempi
säilyke
bf81e00c89
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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',