From 04378d7f833a52c361ce10edcfcacc6549d306a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isak=20Ohlsson=20=C3=85ngnell?= <40887124+islean@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:39:01 +0100 Subject: [PATCH] Use workflow instead of order_type (#2917) (patch) ### Fixed - Use workflow instead of order type when creating orders. --- cg/store/crud/create.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cg/store/crud/create.py b/cg/store/crud/create.py index d8e1c6fe7d..c19560081c 100644 --- a/cg/store/crud/create.py +++ b/cg/store/crud/create.py @@ -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)