Skip to content

Commit

Permalink
Merge branch 'master' of github.com:elastic/kibana into elastic-home-…
Browse files Browse the repository at this point in the history
…page
  • Loading branch information
cqliu1 committed Aug 26, 2020
2 parents 4bd2868 + 5447565 commit 3c2b1b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/ingest_manager/server/services/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let cachedAdminUser: null | { username: string; password: string } = null;

class OutputService {
public async getDefaultOutput(soClient: SavedObjectsClientContract) {
return await soClient.find<Output>({
return await soClient.find<OutputSOAttributes>({
type: OUTPUT_SAVED_OBJECT_TYPE,
searchFields: ['is_default'],
search: 'true',
Expand All @@ -42,6 +42,7 @@ class OutputService {
}

return {
id: outputs.saved_objects[0].id,
...outputs.saved_objects[0].attributes,
};
}
Expand Down

0 comments on commit 3c2b1b9

Please sign in to comment.