You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the update API returns undefined, it is clearly the case that the update fails.
I think the return format contains undefined because the return value depends on the findOne() method.
Therefore, the situation where the return value is undefined is when the update logic fails.
My application is doing error handling for this situation, but I started this discussion because I thought it was a situation that needs to be resolved within the update.
I will attach a simple solution to communicate my opinion intuitively.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If the update API returns undefined, it is clearly the case that the update fails.
I think the return format contains undefined because the return value depends on the findOne() method.
Therefore, the situation where the return value is undefined is when the update logic fails.
My application is doing error handling for this situation, but I started this discussion because I thought it was a situation that needs to be resolved within the update.
I will attach a simple solution to communicate my opinion intuitively.
Your typeDORM is very useful, thank you.
Beta Was this translation helpful? Give feedback.
All reactions