PrePrepConfig is called during settings migration

This commit is contained in:
Jordan Brown
2017-11-11 18:48:22 -05:00
committed by GitHub
parent 3f0f557a68
commit 21f5f50e97
+4 -2
View File
@@ -215,6 +215,8 @@ namespace TGServerService
var newVersion = Config.SettingsVersion;
Config.Upgrade();
PrePrepConfig();
for (var oldVersion = Config.SettingsVersion; oldVersion < newVersion; ++oldVersion)
MigrateSettings(oldVersion);
@@ -223,8 +225,8 @@ namespace TGServerService
Config.UpgradeRequired = false;
Config.Save();
}
PrePrepConfig();
else
PrePrepConfig();
}
/// <summary>