archetecture security fix
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.presentCompany = presentCompany;
|
||||
exports.presentBrand = presentBrand;
|
||||
function presentCompany(company) {
|
||||
return company;
|
||||
}
|
||||
function presentBrand(brand) {
|
||||
if (!brand)
|
||||
return brand;
|
||||
const { amanpaySecretKey, amanpayMerchantId, paypalEmail, paypalMerchantId, ...safe } = brand;
|
||||
return {
|
||||
...safe,
|
||||
amanpayConfigured: !!(amanpayMerchantId && amanpaySecretKey),
|
||||
paypalConfigured: !!(paypalEmail || paypalMerchantId),
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=company.presenter.js.map
|
||||
Reference in New Issue
Block a user