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:
1 parent
1c1826d25d
commit
8880b10b28
1 file changed
+1
@@ -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