fix(ihm_client): initialiser Database (IndexedDB) dans Services.init() et attendre readiness
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 51s

This commit is contained in:
4NK CI Bot 2025-09-18 16:08:58 +00:00
parent eb6f6be67b
commit d47db27583

View File

@ -62,6 +62,11 @@ export default class Services {
// SDK ES module est déjà importé statiquement si nécessaire
this.sdkClient = await import('../../pkg/sdk_client.js');
this.sdkClient.setup();
// Initialise la base locale (IndexedDB) avant toute utilisation
this.database = await Database.getInstance();
if (typeof (this.database as any)?.ready === 'function') {
await (this.database as any).ready();
}
for (const wsurl of Object.values(BOOTSTRAPURL)) {
this.updateRelay(wsurl, '');
}