@@ -52,7 +52,11 @@ export function registerJobInfoRoutes(reporting: ReportingCore) {
5252 const {
5353 management : { jobTypes = [ ] } ,
5454 } = await reporting . getLicenseInfo ( ) ;
55- const { page : queryPage = '0' , size : querySize = '10' , ids : queryIds = null } = req . query ;
55+ const {
56+ page : queryPage = '0' ,
57+ size : querySize = '10' ,
58+ ids : queryIds = null ,
59+ } = req . query as ListQuery ; // NOTE: type inference is not working here. userHandler breaks it?
5660 const page = parseInt ( queryPage , 10 ) || 0 ;
5761 const size = Math . min ( 100 , parseInt ( querySize , 10 ) || 10 ) ;
5862 const jobIds = queryIds ? queryIds . split ( ',' ) : null ;
@@ -112,7 +116,7 @@ export function registerJobInfoRoutes(reporting: ReportingCore) {
112116 return handleUnavailable ( res ) ;
113117 }
114118
115- const { docId } = req . params ;
119+ const { docId } = req . params as { docId : string } ;
116120 const {
117121 management : { jobTypes = [ ] } ,
118122 } = await reporting . getLicenseInfo ( ) ;
@@ -157,7 +161,7 @@ export function registerJobInfoRoutes(reporting: ReportingCore) {
157161 return res . custom ( { statusCode : 503 } ) ;
158162 }
159163
160- const { docId } = req . params ;
164+ const { docId } = req . params as { docId : string } ;
161165 const {
162166 management : { jobTypes = [ ] } ,
163167 } = await reporting . getLicenseInfo ( ) ;
@@ -209,7 +213,7 @@ export function registerJobInfoRoutes(reporting: ReportingCore) {
209213 return handleUnavailable ( res ) ;
210214 }
211215
212- const { docId } = req . params ;
216+ const { docId } = req . params as { docId : string } ;
213217 const {
214218 management : { jobTypes = [ ] } ,
215219 } = await reporting . getLicenseInfo ( ) ;
@@ -235,7 +239,7 @@ export function registerJobInfoRoutes(reporting: ReportingCore) {
235239 return handleUnavailable ( res ) ;
236240 }
237241
238- const { docId } = req . params ;
242+ const { docId } = req . params as { docId : string } ;
239243 const {
240244 management : { jobTypes = [ ] } ,
241245 } = await reporting . getLicenseInfo ( ) ;
0 commit comments