From ddb56ed8da42830f7e052dd9aec344ac6202e380 Mon Sep 17 00:00:00 2001
From: Christian Raphael Heryanto <christian.raphael@ui.ac.id>
Date: Fri, 28 Mar 2025 14:17:19 +0800
Subject: [PATCH] Fix typing error in code

---
 src/service/product.rs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/service/product.rs b/src/service/product.rs
index 2137732..1a662c4 100644
--- a/src/service/product.rs
+++ b/src/service/product.rs
@@ -43,10 +43,9 @@ impl ProductService {
                 String::from("Product not found."),
             ));
         }
-
-        NotificationService.notify(&product.product_type, "DELETED", product.clone());
         let product: Product = product_opt.unwrap();
 
+        NotificationService.notify(&product.product_type, "DELETED", product.clone());
         return Ok(Json::from(product));
     }
 
-- 
GitLab