Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 400 yoga errors being sent to exception handlers (twentyhq#5322)
## Context Yoga can catch its own errors and we don't want to convert them again. Moreover those errors don't have an "originalError" property and should be schema related only (400 validation) so we only want to send them back to the API caller without going through the exception handler. Also fixed an issue in the createMany which was throwing a 500 when id was missing from the creation payload. It seems the FE is always sending an ID but it should actually be optional since the DB can generate one. This is a regression from the new UUID validation introduced a few weeks ago.
- Loading branch information