From 56a33ba19519d36855a99b12f59aa2a97ae1230a Mon Sep 17 00:00:00 2001 From: flo-ride <43076999+flo-ride@users.noreply.github.com> Date: Sat, 26 Oct 2024 20:56:56 +0200 Subject: [PATCH] feat(service): Add disabled field edition on product update method --- service/src/mutation/product.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/mutation/product.rs b/service/src/mutation/product.rs index bb62ecd..a9801f4 100644 --- a/service/src/mutation/product.rs +++ b/service/src/mutation/product.rs @@ -45,7 +45,7 @@ impl Mutation { max_quantity_per_command: Set(form_data.max_quantity_per_command), sma_code: Set(form_data.sma_code), creation_time: NotSet, - disabled: Set(false), + disabled: Set(form_data.disabled), } .update(&conn.db_connection) .await;