Files
alrahma_sunday_school_api/apps/api/dist/modules/customers/customer.presenter.js
T
2026-06-11 03:22:12 -04:00

17 lines
585 B
JavaScript

"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