Kaynağa Gözat

login return ads

FC_DAN\c9837 1 ay önce
ebeveyn
işleme
4370c31b05

+ 2 - 1
apps/box-app-api/src/feature/auth/auth.service.ts

@@ -32,6 +32,7 @@ export class AuthService {
     private readonly prismaMongoStatsService: PrismaMongoStatsService,
     private readonly prismaMongoService: PrismaMongoService, // box-admin
     private readonly adService: AdService,
+    private readonly adService: AdService,
   ) {}
 
   async login(params: LoginParams): Promise<LoginResult> {
@@ -102,7 +103,7 @@ export class AuthService {
 
     // 5) startupAds (placeholder: you’ll wire channel-specific ads later)
     // For now return null to keep behaviour deterministic.
-    const startupAds = await this.adService.listAdsByType(1, 500);
+    const startupAds = await this.adService.listAdsByType(1, 20);
 
     return {
       uid,