fix(plugins/catalog-backend-module-unprocessed): correctly translate owner to string in case of nullish value

Signed-off-by: secustor <sebastian@poxhofer.at>
This commit is contained in:
secustor
2024-04-17 17:19:35 +02:00
parent 912a13d3e4
commit 6f5a3a3ce5
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend-module-unprocessed': patch
---
Correctly convert owner to string in case owner has not been provided
@@ -162,7 +162,7 @@ export class UnprocessedEntitiesModule {
return res.json(
await this.unprocessed({
reason: 'failed',
owner: String(req.query.owner),
owner: req.query.owner?.toString(),
}),
);
})
@@ -170,7 +170,7 @@ export class UnprocessedEntitiesModule {
return res.json(
await this.unprocessed({
reason: 'pending',
owner: String(req.query.owner),
owner: req.query.owner?.toString(),
}),
);
})