Skip to content

Feat/update user - #110

Open
Nintendiuk wants to merge 3 commits into
mate-academy:mainfrom
Nintendiuk:feat/update-user
Open

Feat/update user#110
Nintendiuk wants to merge 3 commits into
mate-academy:mainfrom
Nintendiuk:feat/update-user

Conversation

@Nintendiuk

Copy link
Copy Markdown

No description provided.

Nintendiuk and others added 3 commits August 27, 2026 19:04
Mirrors the existing getUserById/createUser pattern: looks the user up by
id, returns undefined when it is missing, otherwise updates name and email
in place and returns the record.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QYqxBGWFXD3Mqcef99huSz
Validates that name and email are present (400 otherwise), returns 404
when no user has the given id, and returns the updated user on success.
Follows the same structure as the existing GET and POST /users routes and
goes through db/store.js for data access.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QYqxBGWFXD3Mqcef99huSz
Covers the approved plan, model choice, commit split, and the self-review
of edge cases (non-numeric id, missing body, in-place mutation).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QYqxBGWFXD3Mqcef99huSz
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.

1 participant