Skip to content

Commit

Permalink
return this.client if options undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Feb 11, 2021
1 parent 3b83707 commit 74d32ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/server/core_route_handler_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ class CoreSavedObjectsRouteHandlerContext {
}

public getClient = (options?: SavedObjectsClientProviderOptions) => {
if (!options) return this.client;
return this.savedObjectsStart.getScopedClient(this.request, options);
};

Expand Down

0 comments on commit 74d32ff

Please sign in to comment.