Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/src/modules/config/configMigration.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function migrateConfig(oldConfig) {
tidalToken: 'sources.tidal.token'
};
for (const [oldKey, newPath] of Object.entries(migrationMap)) {
if (oldKey === newPath) continue
if (Object.hasOwn(newConfig, oldKey)) {
const value = newConfig[oldKey];
if (value === undefined)
Expand Down
3 changes: 2 additions & 1 deletion src/modules/config/configMigration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ export function migrateConfig(
}

for (const [oldKey, newPath] of Object.entries(migrationMap)) {
if (oldKey === newPath) continue
if (Object.hasOwn(newConfig, oldKey)) {
const value: unknown | undefined = newConfig[oldKey]
if (value === undefined) continue
Expand Down Expand Up @@ -398,4 +399,4 @@ export async function reconcileConfigOnDisk(
`Failed to reconcile configuration on disk: ${err instanceof Error ? err.message : String(err)}. Server will continue with merged in-memory configuration.`
)
}
}
}
Loading