Muhammet-Yildiz / Mern-Blog

Fullstack open source blogging application made with MongoDB, Express, React & Nodejs (MERN)
https://mernblog2022.herokuapp.com/
MIT License
43 stars 9 forks source link

What is going here #1

Closed jewel109 closed 2 years ago

jewel109 commented 2 years ago

https://github.com/Muhammet-Yildiz/Mern-Blog/blob/226f8f15461961ea0a1f5aeb0435bdb62b61cdfc/Backend/Models/story.js#L66-L74

why did you write this hook and why you don't need to call the next()

Muhammet-Yildiz commented 2 years ago

If a story is deleted, all comments must be deleted before the next() operation is done, because there is nothing to be done after this is deleted.

Raihanur Rahman @.***>, 30 Haz 2022 Per, 09:44 tarihinde şunu yazdı:

https://github.com/Muhammet-Yildiz/Mern-Blog/blob/226f8f15461961ea0a1f5aeb0435bdb62b61cdfc/Backend/Models/story.js#L66-L74

why did you write this hook and why you don't need to call the next()

— Reply to this email directly, view it on GitHub https://github.com/Muhammet-Yildiz/Mern-Blog/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARGPQJPOJZDW7USFP7BACMTVRU633ANCNFSM52IF5UYA . You are receiving this because you are subscribed to this thread.Message ID: @.***>