hotfix(medusa): Save empty metadata on line-items (#126)
This commit is contained in:
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 }
|
||||||
|
)
|
||||||
Reference in new issue
Block a user