From ba9575c53e3eb8c7fc8909652a7112f36001c20c Mon Sep 17 00:00:00 2001 From: Gabriel Rosa Date: Wed, 30 Nov 2022 15:43:30 -0300 Subject: [PATCH] FIX: return only owner username --- src/modules/catalog/catalog.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/catalog/catalog.service.ts b/src/modules/catalog/catalog.service.ts index ce9fb0f..7f13cf5 100644 --- a/src/modules/catalog/catalog.service.ts +++ b/src/modules/catalog/catalog.service.ts @@ -283,7 +283,9 @@ class CatalogService implements OnModuleInit { { customer_id }, ); return data_assets.map((data_asset) => { - const owner = customer_users.find((u) => u.id === data_asset.owner); + const owner = customer_users.find( + (u) => u.id === data_asset.owner, + )?.username; const roles = []; const users = [];