-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
DAO methods such as updateMessageError and updatePrimaryBot use require or error for null checks after database lookups. If the data is missing, this will throw and may crash the app instead of handling the error gracefully.
Reproduce
- Attempt to update a message or bot in a session that does not exist in the database.
- Observe that the app throws an exception and may crash.
Expected Behaviors
- DAO methods should handle missing data gracefully and provide meaningful error handling or recovery.
Suggestion
- Replace
require/errorwith proper error handling and user feedback in DAO methods.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels