archetecture security fix
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.presentCustomer = presentCustomer;
|
||||
exports.presentCustomerList = presentCustomerList;
|
||||
const storage_1 = require("../../lib/storage");
|
||||
function presentCustomer(customer) {
|
||||
return {
|
||||
...customer,
|
||||
licenseImageUrl: customer?.licenseImageUrl
|
||||
? (0, storage_1.getProtectedCustomerLicenseImageUrl)(customer.id)
|
||||
: null,
|
||||
};
|
||||
}
|
||||
function presentCustomerList(customers, meta) {
|
||||
return { data: customers, ...meta };
|
||||
}
|
||||
//# sourceMappingURL=customer.presenter.js.map
|
||||
Reference in New Issue
Block a user