|
|
@@ -8,6 +8,7 @@ import { nowSecBigInt } from '@box/common/time/time.util';
|
|
|
|
|
|
interface CachedAd {
|
|
|
id: string;
|
|
|
+ adId: number;
|
|
|
adType: string;
|
|
|
advertiser: string;
|
|
|
title: string;
|
|
|
@@ -69,6 +70,7 @@ export class AdCacheWarmupService implements OnModuleInit {
|
|
|
orderBy: { seq: 'asc' },
|
|
|
select: {
|
|
|
id: true,
|
|
|
+ adId: true,
|
|
|
adType: true,
|
|
|
advertiser: true,
|
|
|
title: true,
|
|
|
@@ -92,6 +94,7 @@ export class AdCacheWarmupService implements OnModuleInit {
|
|
|
try {
|
|
|
await this.cacheAd(ad.id, {
|
|
|
id: ad.id,
|
|
|
+ adId: ad.adId,
|
|
|
adType: ad.adType,
|
|
|
advertiser: ad.advertiser,
|
|
|
title: ad.title,
|
|
|
@@ -143,6 +146,7 @@ export class AdCacheWarmupService implements OnModuleInit {
|
|
|
where: { id: adId },
|
|
|
select: {
|
|
|
id: true,
|
|
|
+ adId: true,
|
|
|
adType: true,
|
|
|
advertiser: true,
|
|
|
title: true,
|
|
|
@@ -182,6 +186,7 @@ export class AdCacheWarmupService implements OnModuleInit {
|
|
|
// Cache the ad
|
|
|
await this.cacheAd(adId, {
|
|
|
id: ad.id,
|
|
|
+ adId: ad.adId,
|
|
|
adType: ad.adType,
|
|
|
advertiser: ad.advertiser,
|
|
|
title: ad.title,
|