Abhinandan-Sah / Horental

Personalized Homestay Booking and Listing Site.
https://horental.onrender.com/home
1 stars 0 forks source link

Having issue on rendering project #1

Open Parth5431 opened 1 month ago

Parth5431 commented 1 month ago

i facing issue while uploading project to render please let me know how to do this Screenshot_20240729_211809

Abhinandan-Sah commented 1 month ago

hey @Parth5431 I have defined currentUser in app.js as a middleware you can check that app.use((req, res, next) => { res.locals.success = req.flash("success"); res.locals.error = req.flash("error"); res.locals.currUser = req.user; next(); });

If you are still facing the issue than you can connect me on linkedIn https://www.linkedin.com/in/abhinandan-sah/