re: Designing a better architecture for a Node.js API VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Bug: Failing to unlink a file will cause an unhandled rejection. await new Promise((resolve, reject) => { fs.unlink(path, err => { if ...
 

Thank you for reporting that Adrian, actually this part wasn't supposed to be in the code.
I was going to add a file upload functionality too but I realized it would make this post very long and I forgot to remove it all.
And thank you for the solution too, I am going to add this in the next functionalities :)

code of conduct - report abuse