Commit 4f3eebc
Add updateUser store helper for PUT /users/:id
Finds a user by id and updates their name/email in place, returning
undefined when no user matches so the route layer can 404.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent c0ca7e9 commit 4f3eebc
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments