Skip to content

Commit

Permalink
we have to parse the path parameters to int
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-viegas committed Jul 20, 2019
1 parent 20e157d commit 9379b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -37,7 +37,7 @@ const storeFunctions = (config) => {
else {
if( event.pathParameters && event.pathParameters.entity ) {
if( event.pathParameters.id )
service.entityRetrieval(event.pathParameters.entity, event.pathParameters.id, done);
service.entityRetrieval(event.pathParameters.entity, parseInt(event.pathParameters.id), done);
else
service.entitiesRetrieval(event.pathParameters.entity, done);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@jtviegas/store-functions",
"version": "0.0.7",
"version": "0.0.8",
"description": "functions for a data store api",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9379b81

Please sign in to comment.