fixed cars_make
This commit is contained in:
parent
bb3b992ee3
commit
030550c35f
@ -25,7 +25,7 @@ exports.getMakes = async (req, res) => {
|
||||
|
||||
exports.getModelbyMake = async (req, res) => {
|
||||
try {
|
||||
const { make } = req.query;
|
||||
const { make } = req.body.make;
|
||||
const docs = await CarModel.find({ make: make })
|
||||
.select("models")
|
||||
.lean();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user