Skip to content

Commit

Permalink
fix(get_user_vehicle): remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Méndez committed Nov 3, 2019
1 parent b57cd4f commit f034417
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions get_user_vehicle.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,12 @@ async function getVehicle(vehicleId) {

exports.handler = async (event) => { // eslint-disable-line no-unused-vars
const userId = event.requestContext.authorizer.user_id;
console.log({ userId });
const vehicleId = event.pathParameters.vehicle;
console.log({ vehicleId });

const user = await getUser(userId);
console.log({ user });
const vehicleInUser = user.vehicles.filter((vId) => vId === vehicleId);
console.log({ vehicleInUser });
if (vehicleInUser) {
const vehicle = await getVehicle(vehicleId);
console.log({ vehicle });
const response = {
statusCode: 200,
headers: { 'Access-Control-Allow-Origin': '*' },
Expand Down

0 comments on commit f034417

Please sign in to comment.