lugenx/ecohabit

Add error handling to answerController

Closed this issue · 2 comments

The getAnswer, updateAnswer, and deleteAnswer functions in answerController.js are missing error handlers. This could cause unexpected behaviors. Please implement this error handling by wrapping the code in each function in a try/catch block.

You can use habitController.js as an example.

Hey, I would like to work on this issue.

Assigned, thank you @codepley