Browse Source

login return ads

FC_DAN\c9837 1 month ago
parent
commit
4370c31b05
1 changed files with 2 additions and 1 deletions
  1. 2 1
      apps/box-app-api/src/feature/auth/auth.service.ts

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