From 1e24fca3791876bff211bf4c27157ad574c1d63c Mon Sep 17 00:00:00 2001 From: freddieptf Date: Mon, 19 Feb 2024 20:39:49 +0300 Subject: [PATCH] add contact properties --- src/routes/files.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/routes/files.ts b/src/routes/files.ts index 29e9039f..acc9cd62 100644 --- a/src/routes/files.ts +++ b/src/routes/files.ts @@ -29,9 +29,10 @@ export default async function files(fastify: FastifyInstance) { const record = [ place.hierarchyProperties[parent.property_name], place.name, + place.contact.properties['name'], + place.contact.properties['phone'], place.creationDetails.username, place.creationDetails.password, - place.creationDetails.disabledUsers, ]; const result = results.get(place.type) || []; result.push(record); @@ -43,9 +44,10 @@ export default async function files(fastify: FastifyInstance) { const columns = [ parent.friendly_name, contactType.friendly, + 'name', + 'phone', 'username', - 'password', - 'disabledUsers', + 'password' ]; zip.file( `${contactType.name}.csv`,