fix: allow swaps with total < 0 (#143)

This commit is contained in:
Sebastian Rindom
2020-12-02 17:37:46 +01:00
committed by GitHub
parent 454504cdf4
commit 304431e7c3
5 changed files with 130 additions and 55 deletions
+1
View File
@@ -25,6 +25,7 @@ class SwapModel extends BaseModel {
amount_paid: { type: Number },
region_id: { type: String },
currency_code: { type: String },
order_payment: { type: PaymentMethodSchema },
order_id: { type: String },
cart_id: { type: String },
created: { type: String, default: Date.now },