import { Injectable } from '@nestjs/common' ; import { CmsService } from './cms.service' ; import { CmsIntegration } from '../../integration/cms.integration' ; import { CMSTrailDTO } from '../../dto/cms-trail.dto' ; @ Injectable ( ) export class TrailService { constructor ( private readonly cmsService , private readonly cmsIntegration ) { } public async getAll ( ) { const { data : trails } = await this . cmsIntegration . getTrails ( ) ; return trails ; } public async findById ( id ) { const { data : pilar } = await this . cmsIntegration . findTrailById ( id ) ; return pilar ; } }