do not give _id to purchased.plan

This commit is contained in:
Matteo Pagliazzi 2016-11-16 21:44:47 +01:00
parent b8f57a74d0
commit 8f38ce3424

View file

@ -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);