We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf2a579 commit 99c44e9Copy full SHA for 99c44e9
2 files changed
.changeset/great-carrots-travel.md
@@ -0,0 +1,5 @@
1
+---
2
+'@axis-backstage/plugin-jira-dashboard-backend': patch
3
4
+
5
+Fix incorrect 404 response
plugins/jira-dashboard-backend/src/service/router.ts
@@ -143,11 +143,11 @@ export async function createRouter(
143
logger.error(
144
`Could not find Jira project ${project.fullProjectKey}: ${err.message}`,
145
);
146
+ response.status(404).json({
147
+ error: `Jira project not found with key ${project.fullProjectKey}`,
148
+ });
149
+ return;
150
}
- response.status(404).json({
- error: `No Jira project found with key ${projects[0].projectKey}`,
- });
- return;
151
152
153
let userEntity: UserEntity | undefined;
0 commit comments