Commit 520cf554 authored by kusang96's avatar kusang96
Browse files

상호 병합 성공

parent 26f7898a
......@@ -86,7 +86,7 @@ function ProductsList({ match }) {
console.log("first test!!!!!!!!")
const response = await axios.get(`/api/product/getproduct/sub/${subname}`)
console.log("subname response data=", response.data)
setProductlist([response.data])
setProductlist(response.data)
} catch (error) {
console.log("error22")
}
......
......@@ -87,7 +87,7 @@ const categoryId = async (req, res, next, category) => {
const subcategoryId = async (req, res, next, subname) => {
try {
console.log("Please===>>>", subname)
const findSubname = await Product.findOne({ sub_category: subname })
const findSubname = await Product.find({ sub_category: subname })
console.log("findSubname111=", findSubname)
if (!findSubname) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment