fix(utils): bignumber util considers nullable options when setting value (#6499)

what:

- when setting null for nullable columns, big number utils should not throw error
- remove circular soft delete depenedencies for cart module
- trims zeros on big number values
This commit is contained in:
Riqwan Thamir
2024-02-26 11:29:36 +00:00
committed by GitHub
parent 56cbf88115
commit 8ea37d03c9
10 changed files with 106 additions and 45 deletions
@@ -24,7 +24,7 @@ import LineItem from "./line-item"
export default class LineItemAdjustment extends AdjustmentLine {
@ManyToOne({
entity: () => LineItem,
cascade: [Cascade.REMOVE, Cascade.PERSIST, "soft-remove"] as any,
cascade: [Cascade.REMOVE, Cascade.PERSIST],
})
item: LineItem
@@ -20,7 +20,7 @@ import ShippingMethod from "./shipping-method"
export default class ShippingMethodAdjustment extends AdjustmentLine {
@ManyToOne({
entity: () => ShippingMethod,
cascade: [Cascade.REMOVE, Cascade.PERSIST, "soft-remove"] as any,
cascade: [Cascade.REMOVE, Cascade.PERSIST],
})
shipping_method: ShippingMethod