updated testimonial view all testimonial controller

This commit is contained in:
Sibunnayak 2024-03-27 14:46:34 +05:30
parent 22fa115b4c
commit fd6a8e9c9b

View File

@ -36,8 +36,6 @@ export const AddNewTestimonial = async (req, res) => {
export const FindAllTestimonial = async (req, res) => { export const FindAllTestimonial = async (req, res) => {
try { try {
if (!req?.user) return res.status(400).json({ message: "please login !" });
// console.log(req?.user)
const testimonial = await Testimonial.find().sort({ createdAt: -1 }); const testimonial = await Testimonial.find().sort({ createdAt: -1 });
if (testimonial) { if (testimonial) {