From 2ac6dd21abe81306bfdd8a7b566919598b87b5d1 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Wed, 4 Dec 2024 19:18:28 +0100 Subject: [PATCH] [tools] Improve the about export --- tools-public/toolpad/resources/queryAbout.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools-public/toolpad/resources/queryAbout.ts b/tools-public/toolpad/resources/queryAbout.ts index beeb833..bd9921a 100644 --- a/tools-public/toolpad/resources/queryAbout.ts +++ b/tools-public/toolpad/resources/queryAbout.ts @@ -22,7 +22,7 @@ export async function queryAbout() { showInactive: false, humanReadable: 'REPLACE', fields: [ - 'root.fullName', + 'root.displayName', // 'root.fullName', is the legal name, use the preferred name instead. 'address.country', 'address.city', 'work.title', @@ -59,7 +59,7 @@ export async function queryAbout() { .map((employee) => { const country = countryFix[employee.address.country] || employee.address.country; return { - name: employee.fullName, + name: employee.displayName, title: employee.work.title, about: employee.about?.custom?.field_1690557141686, location: `${employee.address.city} - ${country}`,