Merge pull request #18349 from GLundh/fix-catalog-call

Fix: CatalogClient call without token
This commit is contained in:
Ben Lambert
2023-06-20 15:15:47 +02:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -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(