Patron sytem should be *disabled* on selfhosted bots by default. Commited true by mistake.

This commit is contained in:
Kwoth
2022-06-22 09:55:09 +02:00
parent 9f445c0866
commit 14bfcb54dc
3 changed files with 17 additions and 3 deletions

View File

@@ -18,5 +18,19 @@ public class PatronageConfig : ConfigServiceBase<PatronConfigData>
x => x.IsEnabled,
bool.TryParse,
ConfigPrinters.ToString);
Migrate();
}
private void Migrate()
{
ModifyConfig(c =>
{
if (c.Version == 1)
{
c.Version = 2;
c.IsEnabled = false;
}
});
}
}