token passed in getEntityByRef
Signed-off-by: Deepankumar Loganathan <deepan0433@gmail.com>
This commit is contained in:
committed by
blam
parent
6c08802adb
commit
ab094515a6
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user