Skip to content

Commit

Permalink
fix type of pinned event saved object, it can be null if you do not h…
Browse files Browse the repository at this point in the history
…ave x-pack security (elastic#37515) (elastic#37560)
  • Loading branch information
XavierM authored May 30, 2019
1 parent 37d21cf commit c50c797
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/plugins/siem/server/lib/pinned_event/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export const SavedPinnedEventRuntimeType = runtimeTypes.intersection([
eventId: runtimeTypes.string,
}),
runtimeTypes.partial({
created: runtimeTypes.number,
createdBy: runtimeTypes.string,
updated: runtimeTypes.number,
updatedBy: runtimeTypes.string,
created: unionWithNullType(runtimeTypes.number),
createdBy: unionWithNullType(runtimeTypes.string),
updated: unionWithNullType(runtimeTypes.number),
updatedBy: unionWithNullType(runtimeTypes.string),
}),
]);

Expand Down

0 comments on commit c50c797

Please sign in to comment.