feat: archived-Feld in Kunden-Admin-API durchreichen

sanitizeCustomer liefert jetzt customers.archived, damit das Ticketsystem den
Archiviert-Status ueber /api/admin/customers erhaelt.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-11 18:44:21 +00:00
parent 1c1826d25d
commit 8880b10b28

View File

@@ -39,6 +39,7 @@ function sanitizeCustomer(customer, { portalPassword } = {}) {
portalAccessEnabled: Boolean(customer.portalAccessEnabled),
appwriteUserId: customer.appwriteUserId || '',
customerStatus: customer.customerStatus || '',
archived: Boolean(customer.archived),
portalPassword: storedPassword || '',
}
}