🐛 oo-connector: do not crash if getting a health request before onlyoffice awake

This commit is contained in:
Eric Doughty-Papassideris
2024-10-03 00:38:15 +02:00
parent b43ef3fed8
commit 0aadcc1a5f
@@ -28,6 +28,7 @@ class ForgottenProcessor implements IHealthProvider {
}
public async getHealthData() {
try {
const keys = await onlyofficeService.getForgottenList();
return {
forgotten: {
@@ -36,6 +37,9 @@ class ForgottenProcessor implements IHealthProvider {
locks: this.forgottenSynchroniser.getWorstStats(),
},
};
} catch (e) {
return { forgotten: 'Error' };
}
}
/**