mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-26 21:18:50 +01:00
web/settings/migrate: migrate alwaysProxy
This commit is contained in:
parent
b463ec7a7d
commit
89fccae33d
1 changed files with 7 additions and 0 deletions
|
@ -57,6 +57,13 @@ const migrations: Record<number, Migrator> = {
|
|||
}
|
||||
}
|
||||
|
||||
if (settings?.privacy) {
|
||||
if ("alwaysProxy" in settings.privacy) {
|
||||
out.save!.alwaysProxy = settings.privacy.alwaysProxy;
|
||||
delete settings.privacy.alwaysProxy;
|
||||
}
|
||||
}
|
||||
|
||||
return out as AllPartialSettingsWithSchema;
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue