diff --git a/app.py b/app.py index 37bdee2..91e29db 100644 --- a/app.py +++ b/app.py @@ -306,6 +306,9 @@ def delete_account() -> Response: # Clear home page cache as well since it shows account stats cache_key_home = f"view/{session['username']}/home" cache.delete(cache_key_home) + # Run the NPM config update in a background thread to remove the deleted account's redirect + thread = threading.Thread(target=_update_npm_config_in_background, args=(session["auth_credentials"],)) + thread.start() return redirect(url_for("user_accounts")) @app.route("/validateAccount", methods=["POST"])