Fixed configuration migration not performing correctly

This commit is contained in:
RisaDev
2024-01-10 00:12:54 +03:00
parent a9700f234c
commit e77037ff09
3 changed files with 15 additions and 32 deletions

View File

@@ -95,8 +95,8 @@ public class ConfigurationMigrator
while (template.UniqueId == Guid.Empty || usedGuids.Contains(template.UniqueId));
usedGuids.Add(template.UniqueId);
_saveService.ImmediateSave(template);
_saveService.ImmediateSave(profile);
_saveService.ImmediateSaveSync(template);
_saveService.ImmediateSaveSync(profile);
_logger.Debug($"Migrated v3 profile {legacyProfile.ProfileName} to profile {profile.UniqueId} and template {template.UniqueId}");
File.Delete(file);