mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[ML] Fixing syncing of deleted job in the * space (#88968)
* [ML] Fixing syncing of deleted job in the * space * small refactor
This commit is contained in:
parent
fde408545d
commit
b5d2d89c14
1 changed files with 3 additions and 1 deletions
|
@ -131,8 +131,10 @@ export function jobSavedObjectServiceFactory(
|
|||
type: jobType,
|
||||
});
|
||||
|
||||
// * space cannot be used in a delete call, so use undefined which
|
||||
// is the same as specifying the default space
|
||||
await internalSavedObjectsClient.delete(ML_SAVED_OBJECT_TYPE, id, {
|
||||
namespace,
|
||||
namespace: namespace === '*' ? undefined : namespace,
|
||||
force: true,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue