[Uptime monitor management] Use saveds objects from all spaces in the task (#124115)

This commit is contained in:
Shahzad 2022-01-31 16:14:42 +01:00 committed by GitHub
parent f68210d7f1
commit ba2d221557
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,6 +232,7 @@ export class SyntheticsService {
const findResult = await savedObjectsClient.find<SyntheticsMonitor>({
type: syntheticsMonitorType,
namespaces: ['*'],
});
return (findResult.saved_objects ?? []).map(({ attributes, id }) => ({