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
All checks were successful
Build and Push Docker image (ext) / docker (push) Successful in 51s
This commit is contained in:
parent
eb6f6be67b
commit
d47db27583
@ -62,6 +62,11 @@ export default class Services {
|
|||||||
// SDK ES module est déjà importé statiquement si nécessaire
|
// SDK ES module est déjà importé statiquement si nécessaire
|
||||||
this.sdkClient = await import('../../pkg/sdk_client.js');
|
this.sdkClient = await import('../../pkg/sdk_client.js');
|
||||||
this.sdkClient.setup();
|
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)) {
|
for (const wsurl of Object.values(BOOTSTRAPURL)) {
|
||||||
this.updateRelay(wsurl, '');
|
this.updateRelay(wsurl, '');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user