Fix: CatalogClient call without token

Signed-off-by: Gustaf Lundh <gustaf.lundh@axis.com>
This commit is contained in:
Gustaf Lundh
2023-06-20 12:33:48 +02:00
parent c414d7ec0d
commit e39c3829bb
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(