From 56185a392394cd42a83d904336fd29b4a935faf6 Mon Sep 17 00:00:00 2001 From: amansinghbais Date: Tue, 17 Dec 2024 18:34:41 +0530 Subject: [PATCH] Improved: returning array as promise when error in getEcomStore api (#220) --- src/services/UserService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/UserService.ts b/src/services/UserService.ts index ea9135a..45ce81d 100644 --- a/src/services/UserService.ts +++ b/src/services/UserService.ts @@ -164,7 +164,7 @@ async function getEComStores(): Promise { } } catch(error) { logger.error(error) - return Promise.resolve({}) + return Promise.resolve([]) } }