fix: retrieve relations when mapping group entities for notifications
Signed-off-by: Marley <55280588+marleypowell@users.noreply.github.com>
This commit is contained in:
@@ -102,7 +102,7 @@ export async function createRouter(
|
||||
const entities = await catalogClient.getEntitiesByRefs(
|
||||
{
|
||||
entityRefs: refs,
|
||||
fields: ['kind', 'metadata.name', 'metadata.namespace'],
|
||||
fields: ['kind', 'metadata.name', 'metadata.namespace', 'relations'],
|
||||
},
|
||||
{ token },
|
||||
);
|
||||
@@ -123,7 +123,7 @@ export async function createRouter(
|
||||
const childGroups = await catalogClient.getEntitiesByRefs(
|
||||
{
|
||||
entityRefs: entity.spec.children,
|
||||
fields: ['kind', 'metadata.name', 'metadata.namespace'],
|
||||
fields: ['kind', 'metadata.name', 'metadata.namespace', 'relations'],
|
||||
},
|
||||
{ token },
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user