Skip to content

Commit

Permalink
fixes type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dhurley14 committed Nov 14, 2019
1 parent ca57e9c commit c7c809f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const signalsAlertType = ({ logger }: { logger: Logger }): SignalAlertTyp
savedId: schema.nullable(schema.string()),
query: schema.nullable(schema.string()),
filters: schema.nullable(schema.arrayOf(schema.object({}, { allowUnknowns: true }))),
maxSignals: schema.number({ defaultValue: 100 }),
maxSignals: schema.number({ defaultValue: 10000 }),
severity: schema.string(),
tags: schema.arrayOf(schema.string(), { defaultValue: [] }),
to: schema.string(),
Expand Down Expand Up @@ -81,7 +81,6 @@ export const signalsAlertType = ({ logger }: { logger: Logger }): SignalAlertTyp
to,
filter: esFilter,
size: searchAfterSize,
maxDocs: maxSignals,
searchAfterSortId: undefined,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface SignalAlertParams {
interval: string;
id: string;
language: string | undefined;
maxSignals: number | undefined;
maxSignals: number;
name: string;
query: string | undefined;
references: string[];
Expand Down

0 comments on commit c7c809f

Please sign in to comment.