Skip to content

Commit

Permalink
fix the backport
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Feb 4, 2020
1 parent 94c053b commit f865a50
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface CreateJobFnOpts {

export const createJobFactory: CreateJobFactory<ESQueueCreateJobFn<
JobParamsPDF
>> = function createJobFactoryFn(server: ServerFacade, logger: Logger) {
>> = function createJobFactoryFn(server: ServerFacade, elasticsearch: unknown, logger: Logger) {
const compatibilityShim = compatibilityShimFactory(server, logger);
const crypto = cryptoFactory(server);

Expand All @@ -42,14 +42,14 @@ export const createJobFactory: CreateJobFactory<ESQueueCreateJobFn<
validateUrls(relativeUrls);

return {
type: objectType, // Note: this changes the shape of the job params object
title,
objects: relativeUrls.map(u => ({ relativeUrl: u })),
headers: serializedEncryptedHeaders,
browserTimezone,
layout,
basePath: request.getBasePath(),
browserTimezone,
forceNow: new Date().toISOString(),
headers: serializedEncryptedHeaders,
layout,
objects: relativeUrls.map(u => ({ relativeUrl: u })),
title,
type: objectType, // Note: this changes the shape of the job params object
};
});
};
4 changes: 2 additions & 2 deletions x-pack/legacy/plugins/reporting/server/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ import {
import { UsageCollectionSetup } from 'src/plugins/usage_collection/server';
import { PluginStart as DataPluginStart } from '../../../../../src/plugins/data/server';
import { SecurityPluginSetup } from '../../../../plugins/security/server';
import { XPackMainPlugin } from '../../xpack_main/server/xpack_main';
// @ts-ignore
import { mirrorPluginStatus } from '../../../server/lib/mirror_plugin_status';
import { XPackMainPlugin } from '../../xpack_main/server/xpack_main';
import { PLUGIN_ID } from '../common/constants';
import { logConfiguration } from '../log_configuration';
import { ReportingPluginSpecOptions } from '../types.d';
import { createBrowserDriverFactory } from './browsers';
import { checkLicenseFactory, getExportTypesRegistry, LevelLogger, runValidations } from './lib';
import { registerReportingUsageCollector } from './usage';
import { registerRoutes } from './routes';
import { registerReportingUsageCollector } from './usage';

export interface ReportingInitializerContext {
logger: LoggerFactory;
Expand Down

0 comments on commit f865a50

Please sign in to comment.