|
|
@@ -5,6 +5,7 @@ import { nowSecBigInt } from '@box/common/time/time.util';
|
|
|
import { RabbitmqPublisherService } from '../../rabbitmq/rabbitmq-publisher.service';
|
|
|
import { PrismaMongoStatsService } from '../../prisma/prisma-mongo-stats.service';
|
|
|
import { PrismaMongoService } from '../../prisma/prisma-mongo.service';
|
|
|
+import { AdService } from '../ads/ad.service';
|
|
|
|
|
|
type LoginParams = {
|
|
|
uid: string;
|
|
|
@@ -30,6 +31,7 @@ export class AuthService {
|
|
|
private readonly rabbitmqPublisher: RabbitmqPublisherService,
|
|
|
private readonly prismaMongoStatsService: PrismaMongoStatsService,
|
|
|
private readonly prismaMongoService: PrismaMongoService, // box-admin
|
|
|
+ private readonly adService: AdService,
|
|
|
) {}
|
|
|
|
|
|
async login(params: LoginParams): Promise<LoginResult> {
|
|
|
@@ -99,7 +101,7 @@ export class AuthService {
|
|
|
|
|
|
// 5) startupAds (placeholder: you’ll wire channel-specific ads later)
|
|
|
// For now return null to keep behaviour deterministic.
|
|
|
- const startupAds: any | null = null;
|
|
|
+ const startupAds = await this.adService.listAdsByType(1, 20);
|
|
|
|
|
|
return {
|
|
|
uid,
|