FC_DAN\c9837 пре 3 недеља
родитељ
комит
805fe00f90
1 измењених фајлова са 16 додато и 10 уклоњено
  1. 16 10
      apps/box-app-api/src/feature/ads/ad.service.ts

+ 16 - 10
apps/box-app-api/src/feature/ads/ad.service.ts

@@ -314,7 +314,7 @@ export class AdService {
       const start = (page - 1) * size;
       const start = (page - 1) * size;
       const stop = start + size - 1;
       const stop = start + size - 1;
 
 
-      const items: AdItemDto[] = [];
+      const items: any[] = [];
 
 
       if (start < total) {
       if (start < total) {
         // Slice the pool entries for this page
         // Slice the pool entries for this page
@@ -347,15 +347,21 @@ export class AdService {
             }
             }
 
 
             items.push({
             items.push({
-              id: ad.id,
-              advertiser: ad.advertiser ?? '',
-              title: ad.title ?? '',
-              adsContent: ad.adsContent ?? null,
-              adsCoverImg: ad.adsCoverImg ?? null,
-              adsUrl: ad.adsUrl ?? null,
-              startDt: ad.startDt.toString(),
-              expiryDt: ad.expiryDt.toString(),
-              seq: ad.seq ?? 0,
+              // id: ad.id,
+              // advertiser: ad.advertiser ?? '',
+              // title: ad.title ?? '',
+              // adsContent: ad.adsContent ?? null,
+              // adsCoverImg: ad.adsCoverImg ?? null,
+              // adsUrl: ad.adsUrl ?? null,
+              // startDt: ad.startDt.toString(),
+              // expiryDt: ad.expiryDt.toString(),
+              // seq: ad.seq ?? 0,
+              i: ad.id,
+              t: ad.title ?? '',
+              c: ad.adsContent ?? null,
+              p: ad.adsCoverImg ?? null,
+              u: ad.adsUrl ?? null,
+              s: ad.seq ?? 0,
             });
             });
           }
           }
         } catch (err) {
         } catch (err) {