Browse Source

chore(core): Set default order type

Michael Bromley 3 years ago
parent
commit
ced1f41c7a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/entity/order/order.entity.ts

+ 1 - 1
packages/core/src/entity/order/order.entity.ts

@@ -45,7 +45,7 @@ export class Order extends VendureEntity implements ChannelAware, HasCustomField
         super(input);
         super(input);
     }
     }
 
 
-    @Column('varchar')
+    @Column('varchar', { default: OrderType.Regular })
     type: OrderType;
     type: OrderType;
 
 
     @OneToMany(type => Order, sellerOrder => sellerOrder.aggregateOrder)
     @OneToMany(type => Order, sellerOrder => sellerOrder.aggregateOrder)