fix(Currency Code): add the missing the currency codes.

This commit is contained in:
a.bouhuolia
2021-04-06 18:57:34 +02:00
parent 86a36f4044
commit 51940818c4
8 changed files with 72 additions and 28 deletions

View File

@@ -324,7 +324,9 @@ export default class ItemsController extends BaseController {
try {
const storedItem = await this.itemsService.getItem(tenantId, itemId);
return res.status(200).send({ item: storedItem });
return res.status(200).send({
item: this.transfromToResponse(storedItem)
});
} catch (error) {
next(error);
}
@@ -356,7 +358,7 @@ export default class ItemsController extends BaseController {
} = await this.itemsService.itemsList(tenantId, filter);
return res.status(200).send({
items,
items: this.transfromToResponse(items),
pagination: this.transfromToResponse(pagination),
filter_meta: this.transfromToResponse(filterMeta),
});
@@ -390,7 +392,7 @@ export default class ItemsController extends BaseController {
filter
);
return res.status(200).send({
items,
items: this.transfromToResponse(items),
});
} catch (error) {
next(error);