Skip to content

Conversation

kkartunov
Copy link
Contributor

No description provided.

totalPages: Math.ceil(totalCount / perPage),
},
};
return reviewTypes as ReviewTypeResponseDto[];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removal of the meta object from the return statement changes the structure of the response. If the meta information is required by the client or other parts of the application, consider whether this change might break existing functionality or if additional adjustments are needed elsewhere in the codebase to accommodate this change.

@@ -45,7 +45,7 @@ import {
ArtifactsListResponseDto,
} from 'src/dto/artifacts.dto';
import { LoggerService } from '../../shared/modules/global/logger.service';
import { PaginatedResponse, PaginationDto } from '../../dto/pagination.dto';
import { PaginationDto } from '../../dto/pagination.dto';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PaginatedResponse import has been removed. Ensure that this type is no longer used in the code. If it is still needed, it should be re-imported.

@@ -166,11 +167,16 @@ export class SubmissionController {
@Query() queryDto: SubmissionQueryDto,
@Query() paginationDto?: PaginationDto,
@Query() sortDto?: SortDto,
): Promise<PaginatedResponse<SubmissionResponseDto>> {
): Promise<SubmissionResponseDto[]> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The return type of the function has been changed from Promise<PaginatedResponse<SubmissionResponseDto>> to Promise<SubmissionResponseDto[]>. Ensure that this change is intentional and that all parts of the codebase that depend on this method are updated accordingly to handle the new return type.

paginationDto,
sortDto,
);
return paginatedData.data;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method now returns paginatedData.data. Verify that paginatedData.data is always an array of SubmissionResponseDto and that it handles cases where paginatedData.data might be undefined or null.

@kkartunov kkartunov merged commit 514905d into feat/ai-workflows Aug 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants