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:
@@ -31,5 +31,5 @@ export async function POST(req: Request, ctx: { params: Promise<{ planeId: strin
|
||||
}
|
||||
|
||||
const destIcao = input.destIcao;
|
||||
return performAction(req, (inst) => flyPlane(inst, planeId, destIcao));
|
||||
return performAction(req, (inst, playerId) => flyPlane(inst, planeId, destIcao, playerId));
|
||||
}
|
||||
|
||||
@@ -30,5 +30,5 @@ export async function POST(req: Request, ctx: { params: Promise<{ planeId: strin
|
||||
}
|
||||
|
||||
const index = input.index as number;
|
||||
return performAction(req, (inst) => cancelQueuedLeg(inst, planeId, index));
|
||||
return performAction(req, (inst, playerId) => cancelQueuedLeg(inst, planeId, index, playerId));
|
||||
}
|
||||
|
||||
@@ -31,5 +31,5 @@ export async function POST(req: Request, ctx: { params: Promise<{ planeId: strin
|
||||
}
|
||||
|
||||
const destIcao = input.destIcao;
|
||||
return performAction(req, (inst) => queueLeg(inst, planeId, destIcao));
|
||||
return performAction(req, (inst, playerId) => queueLeg(inst, planeId, destIcao, playerId));
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@ import { performAction, repairPlane } from '@/lib/game/actions';
|
||||
|
||||
export async function POST(req: Request, ctx: { params: Promise<{ planeId: string }> }) {
|
||||
const { planeId } = await ctx.params;
|
||||
return performAction(req, (inst) => repairPlane(inst, planeId));
|
||||
return performAction(req, (inst, playerId) => repairPlane(inst, planeId, playerId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user