Skip to content

Commit

Permalink
fix: hopefully fixes #162
Browse files Browse the repository at this point in the history
  • Loading branch information
srfrnk committed Mar 8, 2018
1 parent d9d3237 commit 6929bda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/controllers/MissionController.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const { getVehicle, updateVehicleStatus } = require('../store/vehicles');

const command = async (req, res) => {
const { user_id, mission_id, command} = req.query;
if(mission_id==="undefined")
{
res.sendStatus(404);
return;
}
let mission = await getMission(mission_id);
let vehicle = await getVehicle(mission.vehicle_id);

Expand Down

0 comments on commit 6929bda

Please sign in to comment.