archetecture security fix

This commit is contained in:
root
2026-06-11 03:22:12 -04:00
parent 6def9993da
commit 9483750161
3126 changed files with 177194 additions and 37211 deletions
@@ -0,0 +1,14 @@
import { getProtectedCustomerLicenseImageUrl } from '../../lib/storage'
export function presentCustomer(customer: any) {
return {
...customer,
licenseImageUrl: customer?.licenseImageUrl
? getProtectedCustomerLicenseImageUrl(customer.id)
: null,
}
}
export function presentCustomerList(customers: any[], meta: { total: number; page: number; pageSize: number; totalPages: number }) {
return { data: customers, ...meta }
}