Skip to content

Commit

Permalink
fix type errors om ingest_manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jun 9, 2020
1 parent f25e739 commit b49dad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class AgentConfigService {
}

return {
id: configs.saved_objects[0],
id: configs.saved_objects[0].id,
...configs.saved_objects[0].attributes,
};
}
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/ingest_manager/server/services/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const SAVED_OBJECT_TYPE = OUTPUT_SAVED_OBJECT_TYPE;

class OutputService {
public async ensureDefaultOutput(soClient: SavedObjectsClientContract) {
const outputs = await soClient.find<OutputSOAttributes>({
const outputs = await soClient.find<Output>({
type: OUTPUT_SAVED_OBJECT_TYPE,
filter: `${OUTPUT_SAVED_OBJECT_TYPE}.attributes.is_default:true`,
});
Expand Down

0 comments on commit b49dad5

Please sign in to comment.