Northeastern-Electric-Racing / PM-Dashboard-v2

Northeastern Electric Racing Project Management Dashboard - version 2
https://nerpm.netlify.app
GNU Affero General Public License v3.0
15 stars 2 forks source link

#709-added-risk-edit-files-with-test #764

Closed callmejim1226 closed 2 years ago

callmejim1226 commented 2 years ago

Changes

I added three files (risk-edit.ts, risk-types.ts, and risk-edit.test.ts) to develop the endpoint for editing a risk. In risk-edit.ts, I validated incoming data using middy (riskEditInputSchemaBody from risk-types.ts), edited the selected risk from the database, and finally let this endpoint return the edited risk from the database.

Notes

Need to provide screenshots and test the endpoint manually to make sure the endpoint for editing risk works.

Test Cases

Screenshots (if applicable)

Any relevant screenshots go here

To Do

Any remaining things that need to get done

Checklist

It can be helpful to check the Checks and Files changed tabs. Please review the contributor guide and reach out to your squad if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.

Closes # (issue #)