Skip to content

Commit

Permalink
chore: remove logs and unuseful comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Méndez committed Oct 22, 2019
1 parent e279a56 commit b025b39
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions getTripNextStop.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,12 @@ module.exports.handler = function(event, context, callback) {
return callback(null, NotFound);
}

// if (
// event.payload.Key.token !== getData.Item.token ||
// event.payload.Key.id !== getData.Item.id ||
// event.payload.Key.email !== getData.Item.email
// ) {
// return callback(null, Unauthorized);
// }
console.log(getData.Item);
if (getData.Item.trip_status !== 'in_progress') {
return callback(null, invalidState);
}

var index = getData.Item.next_stop || 0;
var spot_id = getData.Item.route_points[index];
console.log('VAMOS VAMOS', spot_id);
if (!spot_id) {
return callback(null, noSpotToGo);
}
Expand Down
1 change: 0 additions & 1 deletion goToNextStop.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ var dynamoDb = new AWS.DynamoDB.DocumentClient();
module.exports.handler = function(event, context, callback) {
var timestamp = new Date().getTime();

// var tripId = event.tripId;
var tripId = event.pathParameters.trip;
if (!tripId) return callback(null, MissingIdOnRequestError);

Expand Down
5 changes: 0 additions & 5 deletions update_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ function parseUpdateParams(body, updateableAttrs, updatedAt) {
expression += `${updateableAttrs[i]} = :${updateableAttrs[i]}, `;
values[`:${updateableAttrs[i]}`] = body[updateableAttrs[i]];
}
console.log('ACTUAL EXPRESSION', expression);
console.log('ACTUAL VALUES', values);
}
if (Object.keys(values).length) {
expression += 'updatedAt = :updatedAt';
Expand All @@ -41,9 +39,6 @@ async function updateUser(userId, body) {
updatedAt
);

console.log('MADE EXPRESSION', updateExpression);
console.log('MADE VALUES', expressionAttributeValues);

let params = {
TableName: process.env.dynamodb_table_name,
Key: {
Expand Down

0 comments on commit b025b39

Please sign in to comment.