Tubaleviao / tuba.work

Open website to develop projects
https://tuba.work
5 stars 7 forks source link

bug removed on making directories recursively in auth function in function.js #7

Closed Babitabisht closed 5 years ago

Babitabisht commented 5 years ago

There was a bug on the auth function inside function.js.
The fs.mkdirSync(dir) was throwing an error on making users/username directories recursively inside the public folder. (since the users directory inside public folder doesn't exist when the application is signing up it's first user) The bug removal includes making directories recursively inside the public folder.

Tubaleviao commented 5 years ago

Great! Thanks for finding it! Just one advice: next time be sure to change only the necessary. You changed a lot of lines (spaces and semicolon) and it was hard to see what was really changed in the code behavior. Thanks again, you're awesome!

Babitabisht commented 5 years ago

Thanks, @Tubaleviao, I will keep this in my mind.