@@ -51,7 +51,7 @@ export class JobController {
5151 description : 'Retrieves a paginated list of job listings with optional filtering' ,
5252 paginatedResponseType : JobDto ,
5353 envelope : true ,
54- queriesFrom : [ PaginationArgs , JobFilterQueryDto ] ,
54+ queriesFrom : [ PaginationArgs , JobFilterQueryDto , JobOrderByDto ] ,
5555 } )
5656 async findAll (
5757 @Query ( ) paginationArgs : PaginationArgs ,
@@ -86,7 +86,7 @@ export class JobController {
8686 pathParamsFrom : CompanyPathParamsDto ,
8787 paginatedResponseType : JobDto ,
8888 envelope : true ,
89- queriesFrom : [ PaginationArgs ] ,
89+ queriesFrom : [ PaginationArgs , JobOrderByDto ] ,
9090 } )
9191 async findByCompany (
9292 @Param ( 'companyId' , ParseIntPipe ) companyId : number ,
@@ -107,7 +107,7 @@ export class JobController {
107107 pathParamsFrom : TagPathParamsDto ,
108108 paginatedResponseType : JobDto ,
109109 envelope : true ,
110- queriesFrom : [ PaginationArgs ] ,
110+ queriesFrom : [ PaginationArgs , JobOrderByDto ] ,
111111 } )
112112 async findByTag ( @Param ( 'tagName' ) tagName : string , @Query ( ) paginationArgs : PaginationArgs , @Query ( ) orderBy : JobOrderByDto ) {
113113 return this . jobService . findByTag ( tagName , paginationArgs , orderBy ) ;
@@ -123,8 +123,6 @@ export class JobController {
123123 responses : [ { status : 200 , description : 'Jobs fetched and notifications sent.' } ] ,
124124 } )
125125 async fetchJobs ( ) : Promise < { redditJobs : any [ ] ; web3CareerJobs : any [ ] ; summary : any } > {
126- 6 ;
127-
128126 // Fetch Reddit jobs
129127 const redditSubreddits = [ 'remotejs' , 'remotejobs' , 'forhire' , 'jobs' , 'webdevjobs' ] ;
130128 const redditPosts = await this . redditService . fetchRedditPosts ( redditSubreddits ) ;
0 commit comments