Skip to content

Comments

Fix admin user update failure#76

Merged
sergeychernyshev merged 1 commit intomainfrom
70-admin-panel---updating-user-name-fails
Feb 22, 2026
Merged

Fix admin user update failure#76
sergeychernyshev merged 1 commit intomainfrom
70-admin-panel---updating-user-name-fails

Conversation

@sergeychernyshev
Copy link
Member

This PR fixes a bug where updating a user's name or email from the admin panel failed because the backend route only supported GET and DELETE.

Changes:

  • Added support for PATCH and PUT methods to the /api/users/:userId admin route.
  • These methods now correctly call systemStub.updateUser, which updates both the UserDO profile and the SystemDO index.
  • Added a regression test in test/admin.spec.ts to ensure user updates work as expected.

Closes #70

✨ Assisted by AI: Gemini

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
startup-api 6bb0703 Feb 22 2026, 10:23 PM

@sergeychernyshev sergeychernyshev merged commit adc60ca into main Feb 22, 2026
2 checks passed
@sergeychernyshev sergeychernyshev deleted the 70-admin-panel---updating-user-name-fails branch February 22, 2026 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin panel - updating user name fails

1 participant