do not give _id to purchased.plan
This commit is contained in:
@@ -27,6 +27,7 @@ export let schema = new mongoose.Schema({
|
||||
schema.plugin(baseModel, {
|
||||
noSet: ['_id'],
|
||||
timestamps: false,
|
||||
_id: false,
|
||||
});
|
||||
|
||||
export let model = mongoose.model('SubscriptionPlan', schema);
|
||||
|
||||
Reference in New Issue
Block a user