Strengthen push device health checks
This commit is contained in:
@@ -1673,6 +1673,20 @@ function control_api_dispatch(): void
|
||||
'ok' => true,
|
||||
'data' => [
|
||||
'devices' => push_device_rows(),
|
||||
'summary' => push_health_summary(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
if ($action === 'send_push_healthcheck') {
|
||||
require_csrf();
|
||||
|
||||
json_out([
|
||||
'ok' => true,
|
||||
'data' => [
|
||||
'result' => send_push_healthcheck_if_due(24, true),
|
||||
'devices' => push_device_rows(),
|
||||
'summary' => push_health_summary(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
@@ -1691,6 +1705,7 @@ function control_api_dispatch(): void
|
||||
'ok' => true,
|
||||
'data' => [
|
||||
'devices' => push_device_rows(),
|
||||
'summary' => push_health_summary(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
@@ -1702,6 +1717,7 @@ function control_api_dispatch(): void
|
||||
'ok' => true,
|
||||
'data' => [
|
||||
'devices' => push_device_rows(),
|
||||
'summary' => push_health_summary(),
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user