fix: swaps with discounts (#142)

This commit is contained in:
Sebastian Rindom
2020-11-29 12:18:36 +01:00
committed by GitHub
parent 9dbb40e287
commit aae8d5e112
4 changed files with 21 additions and 5 deletions
@@ -15,6 +15,7 @@ export default new mongoose.Schema(
is_giftcard: { type: Boolean, default: false },
should_merge: { type: Boolean, default: true },
has_shipping: { type: Boolean, default: false },
no_discount: { type: Boolean, default: false },
// mongoose doesn't allow multi-type validation but this field allows both
// an object containing: