Skip to content

Commit

Permalink
Merge pull request #10 from parkiino/ts-4-3-4
Browse files Browse the repository at this point in the history
[Security Solution][Endpoint][Admin] ts 4-3-4
  • Loading branch information
tylersmalley authored Nov 8, 2021
2 parents 71798c8 + 57c0d2b commit 3aa2fcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const EntriesSchema = schema.conditional(
)
);

const getTrustedAppForOsScheme = (forUpdateFlow: boolean = false) =>
const getTrustedAppForOsScheme = () =>
schema.object({
name: schema.string({ minLength: 1, maxLength: 256 }),
description: schema.maybe(schema.string({ minLength: 0, maxLength: 256, defaultValue: '' })),
Expand All @@ -143,7 +143,7 @@ const getTrustedAppForOsScheme = (forUpdateFlow: boolean = false) =>
}),
]),
entries: EntriesSchema,
...(forUpdateFlow ? { version: schema.maybe(schema.string()) } : {}),
version: schema.maybe(schema.string()),
});

export const PostTrustedAppCreateRequestSchema = {
Expand All @@ -154,5 +154,5 @@ export const PutTrustedAppUpdateRequestSchema = {
params: schema.object({
id: schema.string(),
}),
body: getTrustedAppForOsScheme(true),
body: getTrustedAppForOsScheme(),
};
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,8 @@ export const updateTrustedApp = async (

try {
updatedTrustedAppExceptionItem = await exceptionsListClient.updateExceptionListItem(
// @ts-ignore 4.3.5 upgrade
updatedTrustedAppToUpdateExceptionListItemOptions(
currentTrustedAppExceptionItem,
// @ts-ignore 4.3.5 upgrade
updatedTrustedApp
)
);
Expand Down

0 comments on commit 3aa2fcb

Please sign in to comment.