mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-19 08:48:34 +02:00
Fix variables incorrectly changed from let to const - revert to let where variables are reassigned
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
This commit is contained in:
parent
a2526ea244
commit
27ac204bb6
17 changed files with 30 additions and 17 deletions
|
@ -46,7 +46,8 @@ export default async function migration() {
|
|||
|
||||
// Read and parse the YAML file
|
||||
const fileContents = fs.readFileSync(filePath, "utf8");
|
||||
const rawConfig: any = yaml.load(fileContents);
|
||||
let rawConfig: any;
|
||||
rawConfig = yaml.load(fileContents);
|
||||
|
||||
if (rawConfig.server?.trust_proxy) {
|
||||
rawConfig.server.trust_proxy = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue