From ee259d188fc799549875ed7072ed5f929fa6f4f5 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 6 Feb 2024 19:32:01 +0530 Subject: [PATCH] Improved: syntax for clean code structure (#256) --- src/services/ProductService.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/ProductService.ts b/src/services/ProductService.ts index d3c2ed33..502fd298 100644 --- a/src/services/ProductService.ts +++ b/src/services/ProductService.ts @@ -71,6 +71,7 @@ const addProductToFacility = async (payload: any): Promise => { const getCurrentFacilityLocation = async (facilityId: string): Promise => { let locationSeqId; + try { const params = { "inputFields": { @@ -88,6 +89,7 @@ const getCurrentFacilityLocation = async (facilityId: string): Promise => { } catch (err) { console.error(err); } + return locationSeqId; }