From fd6a8e9c9b0689c6078e41c242f723e9ca321368 Mon Sep 17 00:00:00 2001 From: Sibunnayak Date: Wed, 27 Mar 2024 14:46:34 +0530 Subject: [PATCH] updated testimonial view all testimonial controller --- resources/Testimonials/TestimonialController.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/resources/Testimonials/TestimonialController.js b/resources/Testimonials/TestimonialController.js index 31229d1..2268ecf 100644 --- a/resources/Testimonials/TestimonialController.js +++ b/resources/Testimonials/TestimonialController.js @@ -36,8 +36,6 @@ export const AddNewTestimonial = async (req, res) => { export const FindAllTestimonial = async (req, res) => { try { - if (!req?.user) return res.status(400).json({ message: "please login !" }); - // console.log(req?.user) const testimonial = await Testimonial.find().sort({ createdAt: -1 }); if (testimonial) {