Added a middy for the risks (risks-types.ts), created a risks-create.ts file for the createRisk method. I created the method and the handler to create risks.
Test Cases
Does createRisk create risks normally?
Does createRisk fail when project doesn't exist?
Does createRisk fail when user doesn't exist?
Does createRisk fail when params aren't right?
To Do
[ ] create tests
Checklist
[x] All commits are tagged with the ticket number
[ ] No linting errors
[ ] No newline at end of file warnings
[ ] All code follows repository-configured prettier formatting
[x] No merge conflicts
[x] All checks passing
[ ] Screenshots of UI changes (if applicable)
[ ] Remove any not-applicable sections
[ ] Assign the PR to yourself
[ ] PR is linked to the ticket
[x] No package-lock.json changes (unless dependencies have changed)
Changes
Added a middy for the risks (risks-types.ts), created a risks-create.ts file for the createRisk method. I created the method and the handler to create risks.
Test Cases
To Do
Checklist
package-lock.json
changes (unless dependencies have changed)Closes Northeastern-Electric-Racing/FinishLine#66