File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
x-pack/plugins/reporting/server/export_types Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ export const scheduleTaskFnFactory: ScheduleTaskFnFactory<ESQueueCreateJobFn<
1313 JobParamsPNG
1414> > = function createJobFactoryFn ( reporting ) {
1515 const config = reporting . getConfig ( ) ;
16- const setupDeps = reporting . getPluginSetupDeps ( ) ;
1716 const crypto = cryptoFactory ( config . get ( 'encryptionKey' ) ) ;
1817
1918 return async function scheduleTask (
@@ -32,7 +31,7 @@ export const scheduleTaskFnFactory: ScheduleTaskFnFactory<ESQueueCreateJobFn<
3231 headers : serializedEncryptedHeaders ,
3332 browserTimezone,
3433 layout,
35- basePath : setupDeps . basePath ( req ) ,
34+ basePath : config . kbnConfig . get ( 'server' , 'basePath' ) ,
3635 forceNow : new Date ( ) . toISOString ( ) ,
3736 } ;
3837 } ;
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export const scheduleTaskFnFactory: ScheduleTaskFnFactory<ESQueueCreateJobFn<
1616 JobParamsPDF
1717> > = function createJobFactoryFn ( reporting , logger ) {
1818 const config = reporting . getConfig ( ) ;
19- const setupDeps = reporting . getPluginSetupDeps ( ) ;
2019 const crypto = cryptoFactory ( config . get ( 'encryptionKey' ) ) ;
2120 const compatibilityShim = compatibilityShimFactory ( logger ) ;
2221
@@ -30,7 +29,7 @@ export const scheduleTaskFnFactory: ScheduleTaskFnFactory<ESQueueCreateJobFn<
3029 validateUrls ( relativeUrls ) ;
3130
3231 return {
33- basePath : setupDeps . basePath ( req ) ,
32+ basePath : config . kbnConfig . get ( 'server' , 'basePath' ) ,
3433 browserTimezone,
3534 forceNow : new Date ( ) . toISOString ( ) ,
3635 headers : serializedEncryptedHeaders ,
You can’t perform that action at this time.
0 commit comments