The function signature was inadvertently changed to accept a username string
instead of user_id integer, breaking all tests. Reverted to correct implementation.
All 10 integration tests now pass successfully.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>