F3.1: servir dossier cronológico agregado
This commit is contained in:
@@ -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<unknown> {
|
||||
return this.mergedDossier.dossier(id);
|
||||
}
|
||||
|
||||
@Get(':id/context-history')
|
||||
|
||||
Reference in New Issue
Block a user