Skip to content

Conversation

haniayasserr
Copy link

Changes Made

  • Implemented updatePerk function in perkController.js
  • Added validation for partial updates (only provided fields)
  • Added error handling for 404, 400, and 409 errors
  • Tested successfully in Postman

Testing

  • Created a perk via POST request
  • Updated perk via PATCH request
  • Verified updated data is returned correctly

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