Nice one, thank you!
Btw, that error handling:
catch (error) { ///catch any error, and return server error return res.status(500).json({ok : false, error : 'Server error'}); }
It is like programming version of: - What is wrong darling? - Nothing! All good, just made me giggle a bit :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice one, thank you!
Btw, that error handling:
It is like programming version of: - What is wrong darling? - Nothing!
All good, just made me giggle a bit :)