Fix ignore route slug collision ([packageId] → [id]) — Next.js runtime 500s (ISS-047 part B)
CI / build + unit + e2e (pull_request) Successful in 8m21s

This commit is contained in:
2026-09-20 18:07:18 +00:00
parent 8a12f07703
commit b4b25551ff
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -9,8 +9,8 @@ describe('OpenAPI spec', () => {
'/api/market/buy-plane',
'/api/market/sell-plane',
'/api/packages/{id}/abandon',
'/api/packages/{id}/ignore', // v0.29.0 (ISS-047 part B)
'/api/packages/{id}/load',
'/api/packages/{packageId}/ignore', // v0.29.0 (ISS-047 part B)
'/api/planes/{planeId}/fly',
'/api/planes/{planeId}/queue', // v0.25.0 (ISS-043)
'/api/planes/{planeId}/queue/cancel', // v0.25.0 (ISS-043)
+2 -2
View File
@@ -165,14 +165,14 @@ export const openApiSpec = {
},
},
},
'/api/packages/{packageId}/ignore': {
'/api/packages/{id}/ignore': {
post: {
summary: 'Ignore an open job',
description:
'Dismiss an OPEN job so it leaves the market permanently (v0.29.0, ISS-047 part B). No penalty and nothing else changes — the top-up logic spawns a replacement on the next tick. No body.',
operationId: 'ignorePackage',
parameters: [
{ name: 'packageId', in: 'path', required: true, schema: { type: 'string' } },
{ name: 'id', in: 'path', required: true, schema: { type: 'string' } },
],
responses: {
200: {