Closed jewel109 closed 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ı:
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: @.***>
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()