Skip to content

Commit

Permalink
fixed typos and oversights
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed May 20, 2020
1 parent a3eeb5d commit a99d16a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/encrypted_saved_objects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ router.get(
...
```

5. Instancicate an EncryptedSavedObjects client so that you can interact with Saved Objects whose content has been encrypted.
5. Instantiate an EncryptedSavedObjects client so that you can interact with Saved Objects whose content has been encrypted.

```typescript
const esoClient = encryptedSavedObjects.getClient();
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/encrypted_saved_objects/server/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function createEncryptedSavedObjectsSetupMock() {
registerType: jest.fn(),
__legacyCompat: { registerLegacyAPI: jest.fn() },
usingEphemeralEncryptionKey: true,
startWithHiddenTypes: jest.fn(),
} as jest.Mocked<EncryptedSavedObjectsPluginSetup>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export function registerHiddenSORoutes(
try {
return response.ok({
body: await encryptedSavedObjects
.getClient([request.params.type])
.getClient({
includedHiddenTypes: [request.params.type],
})
.getDecryptedAsInternalUser(request.params.type, request.params.id, { namespace }),
});
} catch (err) {
Expand Down

0 comments on commit a99d16a

Please sign in to comment.