-
Hi folks. Whenever I use the generated repository and use its
This causes some unexpected bug when implementations are expecting null object to throw the appropriate error, see example below UserService.ts
UserController.ts
Alternatively in UserService.ts, I can use this.collection.findFirstOrThrow, and deserialize it to the tsed models. But I'm curious if this could be a bug |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is a silly mistake and not related to tsED. That happens because I threw an error in the try clause and catches it again in the catch clause. I would remove this discussion if i can. |
Beta Was this translation helpful? Give feedback.
This is a silly mistake and not related to tsED. That happens because I threw an error in the try clause and catches it again in the catch clause.
I would remove this discussion if i can.