import { Product } from "../models/Product.js";

export async function recommendProducts({ category, exclude = [] }) {
  return Product.find({ category, _id: { $nin: exclude }, status: "approved" }).sort("-rating -createdAt").limit(12);
}
