Skip to content

Commit

Permalink
fixes after merging main
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Dec 1, 2021
1 parent 44cb2b3 commit dc24afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ describe('createLifecycleExecutor', () => {
it('wraps and unwraps the original executor state', async () => {
const logger = loggerMock.create();
const ruleDataClientMock = createRuleDataClientMock();
// @ts-ignore 4.3.5 upgrade - Expression produces a union type that is too complex to represent.ts(2590)
const executor = createLifecycleExecutor(
logger,
ruleDataClientMock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ export const securitySolutionSearchStrategyProvider = <T extends FactoryQueryTyp

return {
search: (request, options, deps) => {
if (request.factoryQueryType == null) {
if (!('factoryQueryType' in request) || request.factoryQueryType == null) {
throw new Error('factoryQueryType is required');
}

const queryFactory: SecuritySolutionFactory<T> =
securitySolutionFactory[request.factoryQueryType];
const dsl = queryFactory.buildDsl(request);
Expand Down

0 comments on commit dc24afd

Please sign in to comment.