Merge pull request #18349 from GLundh/fix-catalog-call
Fix: CatalogClient call without token
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-linguist-backend': patch
|
||||
---
|
||||
|
||||
Fix: CatalogClient call without token
|
||||
@@ -130,7 +130,8 @@ export class LinguistBackendClient implements LinguistBackendApi {
|
||||
const allEntities = await this.store.getAllEntities();
|
||||
|
||||
for (const entityRef of allEntities) {
|
||||
const result = await this.catalogApi.getEntityByRef(entityRef);
|
||||
const { token } = await this.tokenManager.getToken();
|
||||
const result = await this.catalogApi.getEntityByRef(entityRef, { token });
|
||||
|
||||
if (!result) {
|
||||
this.logger?.info(
|
||||
|
||||
Reference in New Issue
Block a user