All wines endpoint returns newest first.
This commit is contained in:
@@ -139,7 +139,9 @@ const allWinesSummary = async (req, res) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.json(Object.values(wines));
|
wines = Object.values(wines).reverse()
|
||||||
|
|
||||||
|
return res.json(wines);
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
Reference in New Issue
Block a user