Skip to content

Commit

Permalink
feat(get_user): add bearer token and vehicles in response
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Méndez committed Oct 23, 2019
1 parent 57f0ad5 commit e75a974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ async function getUser(userId) {
Key: {
user_id: userId
},
ProjectionExpression: 'user_id, email, first_name, last_name, phone, user_identifications, car'
ProjectionExpression: 'user_id, bearer_token, email, first_name, last_name, phone, user_identifications, vehicles'
};
const data = await dynamoDB.get(params).promise();
return data.Item;
}

exports.handler = async (event) => {
const userId = event.pathParameters.id;
const userId = event.pathParameters.user;
const result = await getUser(userId);
if (result) {
return {
Expand Down

0 comments on commit e75a974

Please sign in to comment.