Skip to content

New PR - #1

Closed
sallaypeter wants to merge 3 commits into
mate-academy:mainfrom
sallaypeter:main
Closed

New PR#1
sallaypeter wants to merge 3 commits into
mate-academy:mainfrom
sallaypeter:main

Conversation

@sallaypeter

Copy link
Copy Markdown

All done.

psallay and others added 3 commits June 14, 2026 17:49
Adds updateUser to db/store.js and a PUT /:id handler to routes/users.js.
Validates name and email (400), returns 404 for unknown ids, 200 with the updated user on success.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Number('abc') produces NaN, which caused the endpoint to silently
return 404 instead of signalling a malformed request. Guard with
isNaN before the store lookup.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add PUT /users/:id endpoint to update an existing user
@sallaypeter sallaypeter closed this by deleting the head repository Jun 16, 2026
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.

2 participants