updated testimonial view all testimonial controller
This commit is contained in:
parent
22fa115b4c
commit
fd6a8e9c9b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user