diff --git a/server/schemas/Product.js b/server/schemas/Product.js index 9ad158e..6fcd768 100644 --- a/server/schemas/Product.js +++ b/server/schemas/Product.js @@ -6,6 +6,7 @@ const Product = new Schema({ image: String, description: String, urlSlug: String, + color: String, variations: [{ type: Schema.Types.ObjectId, ref: "Variation" diff --git a/server/src/products.js b/server/src/products.js index 652f105..32704b8 100644 --- a/server/src/products.js +++ b/server/src/products.js @@ -20,6 +20,7 @@ class Products { name: product.name, description: product.description, urlSlug: slugify(product.name), + color: product.color, image: product.image })