🚧 ooconnector: show forgotten files in health endpoint for debugging (#525)
This commit is contained in:
@@ -45,12 +45,13 @@ class App {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.app.get('/health', (_req, res) => {
|
this.app.get('/health', (_req, res) => {
|
||||||
Promise.all([onlyofficeService.getLatestLicence(), apiService.hasToken()]).then(
|
Promise.all([onlyofficeService.getLatestLicence(), apiService.hasToken(), onlyofficeService.getForgottenList()]).then(
|
||||||
([onlyOfficeLicense, twakeDriveToken]) =>
|
([onlyOfficeLicense, twakeDriveToken, forgottenKeys]) =>
|
||||||
res.status(onlyOfficeLicense && twakeDriveToken ? 200 : 500).send({
|
res.status(onlyOfficeLicense && twakeDriveToken ? 200 : 500).send({
|
||||||
uptime: process.uptime(),
|
uptime: process.uptime(),
|
||||||
onlyOfficeLicense,
|
onlyOfficeLicense,
|
||||||
twakeDriveToken,
|
twakeDriveToken,
|
||||||
|
forgottenKeys,
|
||||||
}),
|
}),
|
||||||
err => res.status(500).send(err),
|
err => res.status(500).send(err),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user