diff --git a/server/services/customerAdmin.js b/server/services/customerAdmin.js index bb504bb..496be69 100644 --- a/server/services/customerAdmin.js +++ b/server/services/customerAdmin.js @@ -39,6 +39,7 @@ function sanitizeCustomer(customer, { portalPassword } = {}) { portalAccessEnabled: Boolean(customer.portalAccessEnabled), appwriteUserId: customer.appwriteUserId || '', customerStatus: customer.customerStatus || '', + archived: Boolean(customer.archived), portalPassword: storedPassword || '', } }