fixed fishconfig reverting captcha every time

This commit is contained in:
Toastie 2025-03-28 21:20:20 +13:00
parent 4c2b42ab7f
commit ea1c8c56e3
Signed by: toastie_t0ast
GPG key ID: 0861BE54AD481DC7

View file

@ -20,10 +20,13 @@ public sealed class FishConfigService : ConfigServiceBase<FishConfig>
private void Migrate()
{
ModifyConfig(c =>
if (data.Version < 2)
{
c.Version = 2;
c.RequireCaptcha = true;
});
ModifyConfig(c =>
{
c.Version = 2;
c.RequireCaptcha = true;
});
}
}
}