Skip to content

Commit

Permalink
feat(bee-2.0.0): remove admin-password, debug-api-addr, debug-api-ena…
Browse files Browse the repository at this point in the history
…ble from the config (#437)

Co-authored-by: Ferenc Sárai <[email protected]>
  • Loading branch information
ferencsarai and Ferenc Sárai authored Sep 19, 2024
1 parent 6714969 commit 9874352
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,16 @@ export function runMigrations() {
if (config['use-postage-snapshot'] !== false && config['use-postage-snapshot'] !== 'false') {
writeConfigYaml({ 'use-postage-snapshot': false })
}

if (config['admin-password'] !== undefined) {
deleteKeyFromConfigYaml('admin-password')
}

if (config['debug-api-addr'] !== undefined) {
deleteKeyFromConfigYaml('debug-api-addr')
}

if (config['debug-api-enable'] !== undefined) {
deleteKeyFromConfigYaml('debug-api-enable')
}
}

0 comments on commit 9874352

Please sign in to comment.