v1.2.0: planes.owner_id + ownership checks + per-player onboarding (ISS-108, ISS-109)
CI / build + unit + e2e (pull_request) Successful in 13m46s
CI / build + unit + e2e (pull_request) Successful in 13m46s
This commit is contained in:
@@ -9,5 +9,5 @@ import { abandonPackage, performAction } from '@/lib/game/actions';
|
||||
|
||||
export async function POST(req: Request, ctx: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await ctx.params;
|
||||
return performAction(req, (inst) => abandonPackage(inst, id));
|
||||
return performAction(req, (inst, playerId) => abandonPackage(inst, id, playerId));
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@ export async function POST(req: Request, ctx: { params: Promise<{ id: string }>
|
||||
}
|
||||
|
||||
const planeId = input.planeId;
|
||||
return performAction(req, (inst) => loadPackage(inst, id, planeId));
|
||||
return performAction(req, (inst, playerId) => loadPackage(inst, id, planeId, playerId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user