Skip to content

Commit

Permalink
add contact properties
Browse files Browse the repository at this point in the history
  • Loading branch information
freddieptf committed Feb 19, 2024
1 parent 17d006e commit 1e24fca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/routes/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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`,
Expand Down

0 comments on commit 1e24fca

Please sign in to comment.