-
Notifications
You must be signed in to change notification settings - Fork 8
Sync up with dev #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync up with dev #26
Conversation
totalPages: Math.ceil(totalCount / perPage), | ||
}, | ||
}; | ||
return reviewTypes as ReviewTypeResponseDto[]; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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[]> { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
No description provided.