hotfix(medusa): Save empty metadata on line-items (#126)

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2020-10-17 17:06:20 +02:00
1 parent a238fad7ea
commit 46dbbdb9fb
1 file changed
+5 -2
@@ -3,7 +3,8 @@
******************************************************************************/ ******************************************************************************/
import mongoose from "mongoose" import mongoose from "mongoose"
export default new mongoose.Schema({ export default new mongoose.Schema(
{
title: { type: String, required: true }, title: { type: String, required: true },
description: { type: String }, description: { type: String },
thumbnail: { type: String }, thumbnail: { type: String },
@@ -41,4 +42,6 @@ export default new mongoose.Schema({
fulfilled_quantity: { type: Number, default: 0 }, fulfilled_quantity: { type: Number, default: 0 },
returned_quantity: { type: Number, default: 0 }, returned_quantity: { type: Number, default: 0 },
metadata: { type: mongoose.Schema.Types.Mixed, default: {} }, metadata: { type: mongoose.Schema.Types.Mixed, default: {} },
}) },
{ minimize: false }
)