From b2de1514aea827a601df17b19677fe68b7c74deb Mon Sep 17 00:00:00 2001 From: Egor Kitselyuk Date: Wed, 12 Feb 2025 11:37:35 +0300 Subject: [PATCH] WMRUSTORE-36: Fix save config order --- sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt b/sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt index 0700c56be..14490b1fd 100644 --- a/sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt +++ b/sdk/src/main/java/cloud/mindbox/mobile_sdk/Mindbox.kt @@ -570,9 +570,9 @@ object Mindbox : MindboxLog { initScope.launch { InitializeLock.await(InitializeLock.State.MIGRATION) - DbManager.saveConfigurations(Configuration(configuration)) val checkResult = checkConfig(configuration) val validatedConfiguration = validateConfiguration(configuration) + DbManager.saveConfigurations(Configuration(configuration)) logI("init. checkResult: $checkResult") if (checkResult != ConfigUpdate.NOT_UPDATED && !MindboxPreferences.isFirstInitialize) { logI("init. softReinitialization")