From ab094515a602f9e34948b0cdbefc51ff0b0a1aac Mon Sep 17 00:00:00 2001 From: Deepankumar Loganathan Date: Mon, 20 Nov 2023 21:50:52 +0100 Subject: [PATCH] token passed in getEntityByRef Signed-off-by: Deepankumar Loganathan --- plugins/azure-sites-backend/src/service/router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/azure-sites-backend/src/service/router.ts b/plugins/azure-sites-backend/src/service/router.ts index 7fbd4d77af..67a4152eba 100644 --- a/plugins/azure-sites-backend/src/service/router.ts +++ b/plugins/azure-sites-backend/src/service/router.ts @@ -73,7 +73,7 @@ export async function createRouter( if (typeof entityRef !== 'string') { throw new InputError('Invalid entityRef, not a string'); } - const entity = await catalogApi.getEntityByRef(entityRef); + const entity = await catalogApi.getEntityByRef(entityRef, { token }); if (entity) { const annotationName = @@ -131,7 +131,7 @@ export async function createRouter( if (typeof entityRef !== 'string') { throw new InputError('Invalid entityRef, not a string'); } - const entity = await catalogApi.getEntityByRef(entityRef); + const entity = await catalogApi.getEntityByRef(entityRef, { token }); if (entity) { const annotationName =