Ver código fonte

fix(homepage): enable category selection in channel data fetch

Dave 1 mês atrás
pai
commit
d01b9fc98a

+ 3 - 3
apps/box-app-api/src/feature/homepage/homepage.service.ts

@@ -323,9 +323,9 @@ export class HomepageService {
 
       const channel = await this.prisma.channel.findUnique({
         where: { channelId },
-        // select: {
-        //   categories: true,
-        // },
+        select: {
+          categories: true,
+        },
       });
       this.logger.log(
         `Fetched channel data for channelId=${channelId}: ${JSON.stringify(channel)}`,