Parcourir la source

feat(ads): add adId to AdsInterfaceDto and mapToDto method

Dave il y a 1 mois
Parent
commit
2857c45219

+ 1 - 0
apps/box-mgnt-api/src/mgnt-backend/feature/ads/ads.dto.ts

@@ -265,6 +265,7 @@ export class ListAdsDto extends PageListDto {
 
 export interface AdsInterfaceDto {
   id: string;
+  adId: number;
   adType: PrismaAdType;
   advertiser: string;
   title: string;

+ 1 - 0
apps/box-mgnt-api/src/mgnt-backend/feature/ads/ads.service.ts

@@ -139,6 +139,7 @@ export class AdsService {
   private mapToDto(ad: any): AdsInterfaceDto {
     return {
       id: ad.id,
+      adId: ad.adId,
       adType: ad.adType,
       advertiser: ad.advertiser,
       title: ad.title,