diff --git a/server/src/controllers/integrity.controller.ts b/server/src/controllers/integrity.controller.ts index 910673bf37..f6825282b6 100644 --- a/server/src/controllers/integrity.controller.ts +++ b/server/src/controllers/integrity.controller.ts @@ -46,6 +46,22 @@ export class IntegrityController { return this.service.getIntegrityReport(dto); } + @Get('report/:id/file') + @Endpoint({ + summary: 'Download flagged file', + description: 'Download the untracked/broken file if one exists', + history: new HistoryBuilder().added('v2.6.0').alpha('v2.6.0'), + }) + @FileResponse() + @Authenticated({ permission: Permission.Maintenance, admin: true }) + async getIntegrityReportFile( + @Param() { id }: UUIDv7ParamDto, + @Res() res: Response, + @Next() next: NextFunction, + ): Promise { + await sendFile(res, next, () => this.service.getIntegrityReportFile(id), this.logger); + } + @Delete('report/:id') @Endpoint({ summary: 'Delete integrity report item', @@ -72,20 +88,4 @@ export class IntegrityController { this.service.getIntegrityReportCsv(type).pipe(res); } - - @Get('report/:id/file') - @Endpoint({ - summary: 'Download flagged file', - description: 'Download the untracked/broken file if one exists', - history: new HistoryBuilder().added('v2.6.0').alpha('v2.6.0'), - }) - @FileResponse() - @Authenticated({ permission: Permission.Maintenance, admin: true }) - async getIntegrityReportFile( - @Param() { id }: UUIDv7ParamDto, - @Res() res: Response, - @Next() next: NextFunction, - ): Promise { - await sendFile(res, next, () => this.service.getIntegrityReportFile(id), this.logger); - } }