Skip to content

Commit 9095977

Browse files
committed
fix: Simplify getReportStatus method by removing unused body parameter
1 parent c965322 commit 9095977

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

backend/src/document-processor/controllers/document-processor.controller.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -671,12 +671,9 @@ export class DocumentProcessorController {
671671
}
672672

673673
@Get('report-status/:reportId')
674-
async getReportStatus(
675-
@Req() request: RequestWithUser,
676-
@Body('reportId') idFromBody: string,
677-
): Promise<any> {
678-
// Get reportId from path parameter or body
679-
const reportId = request.params.reportId || idFromBody;
674+
async getReportStatus(@Req() request: RequestWithUser): Promise<any> {
675+
// Get reportId from path parameter
676+
const reportId = request.params.reportId;
680677

681678
if (!reportId) {
682679
throw new BadRequestException('No reportId provided');

0 commit comments

Comments
 (0)