|
@@ -225,7 +225,7 @@ export class AdService {
|
|
|
* 2. For each ad type, fetch ads from Redis pool with pagination
|
|
* 2. For each ad type, fetch ads from Redis pool with pagination
|
|
|
* 3. Return adTypes list and adsList grouped by type
|
|
* 3. Return adTypes list and adsList grouped by type
|
|
|
*/
|
|
*/
|
|
|
- async listAdsByType(page: number, size: number): Promise<AllAdsResponseDto> {
|
|
|
|
|
|
|
+ async listAdsByType(page: number, size: number): Promise<any> {
|
|
|
// Step 1: Get all ad types
|
|
// Step 1: Get all ad types
|
|
|
const adTypes = await this.sysParamsService.getAdTypes();
|
|
const adTypes = await this.sysParamsService.getAdTypes();
|
|
|
|
|
|
|
@@ -346,7 +346,6 @@ export class AdService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
- adTypes,
|
|
|
|
|
adsList,
|
|
adsList,
|
|
|
page,
|
|
page,
|
|
|
size,
|
|
size,
|