catalogo: alteracao nas pastas e acrescimo de filtros

This commit is contained in:
Rafael Moraes
2025-12-10 16:51:28 +00:00
parent b0b557246e
commit 2f140d213a
4 changed files with 79 additions and 5 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ export class ShareService implements OnModuleInit {
return data_assets.map((data_asset) => {
const owner = customer_users.find(
(u) => u.id === data_asset.owner,
)?.username;
)?.email;
const roles = [];
const users = [];
@@ -190,7 +190,7 @@ export class ShareService implements OnModuleInit {
}
for (const user_id of data_asset.users) {
const user = customer_users.find((r) => r.id === user_id);
if (user) users.push({ id: user.id, username: user.username });
if (user) users.push({ id: user.id, email: user.email });
}
return {
...data_asset,