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:
@@ -39,6 +39,7 @@ function sanitizeCustomer(customer, { portalPassword } = {}) {
|
|||||||
portalAccessEnabled: Boolean(customer.portalAccessEnabled),
|
portalAccessEnabled: Boolean(customer.portalAccessEnabled),
|
||||||
appwriteUserId: customer.appwriteUserId || '',
|
appwriteUserId: customer.appwriteUserId || '',
|
||||||
customerStatus: customer.customerStatus || '',
|
customerStatus: customer.customerStatus || '',
|
||||||
|
archived: Boolean(customer.archived),
|
||||||
portalPassword: storedPassword || '',
|
portalPassword: storedPassword || '',
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user