From dafb57d7060ec8119a1b392d1c8d9bd663ba1d27 Mon Sep 17 00:00:00 2001 From: enlineawork Date: Mon, 7 Sep 2026 14:20:47 -0300 Subject: [PATCH] =?UTF-8?q?F3.1:=20servir=20dossier=20cronol=C3=B3gico=20a?= =?UTF-8?q?gregado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-v3/src/asset-master/assets.controller.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/api-v3/src/asset-master/assets.controller.ts b/api-v3/src/asset-master/assets.controller.ts index e1061e2..e07dd1a 100644 --- a/api-v3/src/asset-master/assets.controller.ts +++ b/api-v3/src/asset-master/assets.controller.ts @@ -16,6 +16,7 @@ import type { RequestWithContext, } from '../common/http/request-context'; import { AssetsService } from './assets.service'; +import { MergedInventoryDossierService } from './merged-inventory-dossier.service'; import { ChangeAssetStatusDto } from './dto/change-asset-status.dto'; import { ChangeAssetOperationalStatusDto } from './dto/change-asset-operational-status.dto'; import { CreateAssetDto } from './dto/create-asset.dto'; @@ -31,7 +32,10 @@ import { ChangeAssetContextDto } from './dto/change-asset-context.dto'; @Controller('assets') export class AssetsController { - constructor(private readonly assets: AssetsService) {} + constructor( + private readonly assets: AssetsService, + private readonly mergedDossier: MergedInventoryDossierService, + ) {} @Get() @RequirePermissions('assets.read') @@ -131,8 +135,8 @@ export class AssetsController { 'inspection_evidence.read', 'inspection_communications.read', ) - dossier(@Param('id', new ParseUUIDPipe({ version: '4' })) id: string) { - return this.assets.dossier(id); + dossier(@Param('id', new ParseUUIDPipe({ version: '4' })) id: string): Promise { + return this.mergedDossier.dossier(id); } @Get(':id/context-history')