diff --git a/packages/api/src/controllers/dispatch/BoloController.ts b/packages/api/src/controllers/dispatch/BoloController.ts index 6ad2f8d43..6109653c5 100644 --- a/packages/api/src/controllers/dispatch/BoloController.ts +++ b/packages/api/src/controllers/dispatch/BoloController.ts @@ -125,7 +125,7 @@ export class BoloController { @Use(ActiveOfficer) @Post("/mark-stolen/:id") async reportVehicleStolen(@BodyParams() body: JsonRequestBody) { - const { id, color, model, plate } = body.toJSON(); + const { id, color, modelId, plate } = body.toJSON(); const vehicle = await prisma.registeredVehicle.findUnique({ where: { id }, @@ -149,7 +149,7 @@ export class BoloController { description: "stolen", type: "VEHICLE", color: color || null, - model: model?.value || null, + model: modelId || null, plate: plate || null, }, }); diff --git a/packages/client/src/components/leo/modals/VehicleSearchModal.tsx b/packages/client/src/components/leo/modals/VehicleSearchModal.tsx index 3601d61df..9c738b675 100644 --- a/packages/client/src/components/leo/modals/VehicleSearchModal.tsx +++ b/packages/client/src/components/leo/modals/VehicleSearchModal.tsx @@ -53,7 +53,12 @@ export function VehicleSearchModal() { const { json } = await execute(`/bolos/mark-stolen/${results.id}`, { method: "POST", - data: results, + data: { + id: results.id, + color: results.color, + modelId: results.modelId, + plate: results.plate, + }, }); if (json) {