Skip to content

Commit

Permalink
chore(modules): Add the mandae app to calculate shipping
Browse files Browse the repository at this point in the history
  • Loading branch information
wisley7l committed Oct 17, 2023
1 parent e828b47 commit 5014fcc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/modules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@cloudcommerce/app-galaxpay": "workspace:*",
"@cloudcommerce/app-jadlog": "workspace:*",
"@cloudcommerce/app-loyalty-points": "workspace:*",
"@cloudcommerce/app-mandae": "workspace:*",
"@cloudcommerce/app-melhor-envio": "workspace:*",
"@cloudcommerce/app-mercadopago": "workspace:*",
"@cloudcommerce/app-pagarme": "workspace:*",
Expand All @@ -56,4 +57,4 @@
"@firebase/app-types": "^0.9.0",
"json-schema-to-typescript": "^13.1.1"
}
}
}
5 changes: 5 additions & 0 deletions packages/modules/src/firebase/call-app-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ export default async (
return import('@cloudcommerce/app-flash-courier')
.then(({ calculateShipping }) => calculateShipping(_data));
};
} else if (appId === apps.mandae.appId) {
internalModuleFn = async (_data: AppModuleBody = data) => {
return import('@cloudcommerce/app-mandae')
.then(({ calculateShipping }) => calculateShipping(_data));
};
}
} else if (modName === 'list_payments') {
if (appId === apps.mercadoPago.appId) {
Expand Down

0 comments on commit 5014fcc

Please sign in to comment.