Fix ignore route slug collision ([packageId] → [id]) — Next.js runtime 500s (ISS-047 part B)
CI / build + unit + e2e (pull_request) Successful in 8m21s
CI / build + unit + e2e (pull_request) Successful in 8m21s
This commit is contained in:
+3
-3
@@ -4,7 +4,7 @@ import { ignorePackage, performAction } from '@/lib/game/actions';
|
||||
// leaves the market permanently; the top-up logic spawns a replacement on the next tick. No penalty,
|
||||
// nothing else changes. 404 unknown id; 409 unless open. On success returns the full state snapshot.
|
||||
|
||||
export async function POST(_req: Request, ctx: { params: Promise<{ packageId: string }> }) {
|
||||
const { packageId } = await ctx.params;
|
||||
return performAction((inst) => ignorePackage(inst, packageId));
|
||||
export async function POST(_req: Request, ctx: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await ctx.params;
|
||||
return performAction((inst) => ignorePackage(inst, id));
|
||||
}
|
||||
Reference in New Issue
Block a user