From ba12ead25ed7d0fbec04f5d6899dc96087fa4e32 Mon Sep 17 00:00:00 2001 From: Luc Claustres Date: Thu, 2 Jan 2025 08:25:58 +0100 Subject: [PATCH] refactor: KDK API client initialization is now async --- src/boot/kdk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/kdk.js b/src/boot/kdk.js index c9ac31c7..f4eca65b 100644 --- a/src/boot/kdk.js +++ b/src/boot/kdk.js @@ -24,7 +24,7 @@ export default async ({ app }) => { // Initializes i18n first to avoid any browser translation await i18n.initialize(app, ['core', 'map', 'crisis']) // Initiate the client - const api = initializeApi(setupApi) + const api = await initializeApi(setupApi) // Setup app hooks api.hooks(appHooks) // Then all services