Skip to content

Commit

Permalink
feat(login_user): add vehicles on response
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Méndez committed Nov 2, 2019
1 parent 1b9607c commit d0e7c8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions login_user.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function getUserFromLogin(userEmail) {
TableName: UsersTableName,
IndexName: UsersIndexName,
ProjectionExpression:
'user_id, password_hash, vehicle, bearer_token, first_name, last_name, email, phone, user_identifications, user_verifications',
'user_id, password_hash, vehicles, bearer_token, first_name, last_name, email, phone, user_identifications, user_verifications',
KeyConditionExpression: 'email = :email',
ExpressionAttributeValues: {
':email': userEmail
Expand Down Expand Up @@ -99,7 +99,8 @@ exports.handler = async (event) => {
front: driverFrontUrl,
back: driverBackUrl
}
}
},
vehicles: userFromDb.vehicles
};
return {
statusCode: 200,
Expand Down

0 comments on commit d0e7c8a

Please sign in to comment.