We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a0ef50 commit f7de4dcCopy full SHA for f7de4dc
2 files changed
docker-compose.yml
@@ -1,7 +1,7 @@
1
services:
2
# Commercify API Backend
3
commercify-api:
4
- image: ghcr.io/zenfulcode/commercifygo:v0.0.5-beta
+ image: ghcr.io/zenfulcode/commercifygo:v0.0.6-beta
5
ports:
6
- '6091:6091'
7
environment:
src/lib/mappers/currency.mapper.ts
@@ -8,14 +8,16 @@ export const currenyListMapper = (
8
success: boolean;
9
error?: string;
10
} => {
11
- if (!dto.data) {
+ if (dto.error) {
12
return {
13
data: [],
14
success: false,
15
- error: 'Currency data is missing in the response'
+ error: dto.error ? dto.error : 'An error occurred while fetching currencies'
16
};
17
}
18
19
+ console.log('Currency list fetched successfully:', dto.data);
20
+
21
22
data: dto.data.map(currencyMapper),
23
success: dto.success,
0 commit comments