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,
|
||||
description: String,
|
||||
urlSlug: String,
|
||||
color: String,
|
||||
variations: [{
|
||||
type: Schema.Types.ObjectId,
|
||||
ref: "Variation"
|
||||
|
||||
@@ -20,6 +20,7 @@ class Products {
|
||||
name: product.name,
|
||||
description: product.description,
|
||||
urlSlug: slugify(product.name),
|
||||
color: product.color,
|
||||
image: product.image
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user