File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import {
4545 ArtifactsListResponseDto ,
4646} from 'src/dto/artifacts.dto' ;
4747import { LoggerService } from '../../shared/modules/global/logger.service' ;
48- import { PaginationDto } from '../../dto/pagination.dto' ;
48+ import { PaginatedResponse , PaginationDto } from '../../dto/pagination.dto' ;
4949import { SortDto } from '../../dto/sort.dto' ;
5050import { SubmissionService } from './submission.service' ;
5151import { JwtUser } from 'src/shared/modules/global/jwt.service' ;
@@ -180,16 +180,11 @@ export class SubmissionController {
180180 @Query ( ) queryDto : SubmissionQueryDto ,
181181 @Query ( ) paginationDto ?: PaginationDto ,
182182 @Query ( ) sortDto ?: SortDto ,
183- ) : Promise < SubmissionResponseDto [ ] > {
183+ ) : Promise < PaginatedResponse < SubmissionResponseDto > > {
184184 this . logger . log (
185185 `Getting submissions with filters - ${ JSON . stringify ( queryDto ) } ` ,
186186 ) ;
187- const paginatedData = await this . service . listSubmission (
188- queryDto ,
189- paginationDto ,
190- sortDto ,
191- ) ;
192- return paginatedData . data ;
187+ return this . service . listSubmission ( queryDto , paginationDto , sortDto ) ;
193188 }
194189
195190 @Get ( '/:submissionId' )
You can’t perform that action at this time.
0 commit comments