Skip to content

Commit

Permalink
Use workflow instead of order_type (#2917) (patch)
Browse files Browse the repository at this point in the history
### Fixed

- Use workflow instead of order type when creating orders.
  • Loading branch information
islean authored Feb 8, 2024
1 parent 01d337e commit 04378d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cg/store/crud/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,11 @@ def add_sample_lane_sequencing_metrics(

def add_order(self, order_data: OrderIn):
customer: Customer = self.get_customer_by_internal_id(order_data.customer)
workflow: str = order_data.samples[0].data_analysis
order = Order(
customer_id=customer.id,
ticket_id=order_data.ticket,
workflow=order_data.order_type,
workflow=workflow,
)
session = get_session()
session.add(order)
Expand Down

0 comments on commit 04378d7

Please sign in to comment.