fixed cars_make

This commit is contained in:
Jonathan Jara 2025-05-03 19:41:03 -07:00
parent bb3b992ee3
commit 030550c35f

View File

@ -25,7 +25,7 @@ exports.getMakes = async (req, res) => {
exports.getModelbyMake = async (req, res) => { exports.getModelbyMake = async (req, res) => {
try { try {
const { make } = req.query; const { make } = req.body.make;
const docs = await CarModel.find({ make: make }) const docs = await CarModel.find({ make: make })
.select("models") .select("models")
.lean(); .lean();