Skip to content

Commit

Permalink
Improved: returning array as promise when error in getEcomStore api (h…
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 17, 2024
1 parent 05be427 commit 56185a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/UserService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function getEComStores(): Promise<any> {
}
} catch(error) {
logger.error(error)
return Promise.resolve({})
return Promise.resolve([])
}
}

Expand Down

0 comments on commit 56185a3

Please sign in to comment.