mirror of
https://github.com/KevinMidboe/planetposen.git
synced 2025-10-29 17:50:32 +00:00
A product now has color attribute on model.
This commit is contained in:
@@ -6,6 +6,7 @@ const Product = new Schema({
|
|||||||
image: String,
|
image: String,
|
||||||
description: String,
|
description: String,
|
||||||
urlSlug: String,
|
urlSlug: String,
|
||||||
|
color: String,
|
||||||
variations: [{
|
variations: [{
|
||||||
type: Schema.Types.ObjectId,
|
type: Schema.Types.ObjectId,
|
||||||
ref: "Variation"
|
ref: "Variation"
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ class Products {
|
|||||||
name: product.name,
|
name: product.name,
|
||||||
description: product.description,
|
description: product.description,
|
||||||
urlSlug: slugify(product.name),
|
urlSlug: slugify(product.name),
|
||||||
|
color: product.color,
|
||||||
image: product.image
|
image: product.image
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user