Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
Fixed resolve did not increment visit counter
Browse files Browse the repository at this point in the history
  • Loading branch information
aletheia committed Nov 3, 2016
1 parent 4099bda commit 2a9b239
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions code/lambda/shared/dynamodb/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function Client(logger, config) {
return client.scan(params).promise();
};

this.update = function(params) {
/* this.update = function(params) {
logger.debug("Executing update query: " + JSON.stringify(params));
return client.update(params).promise();
};
};*/

}

Expand Down
2 changes: 1 addition & 1 deletion code/lambda/shared/shortener/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var ShortenerRepository = function(logger, client, config) {
params.ConditionExpression = "attribute_exists(#uuid)";
params.ExpressionAttributeNames = {"#uuid": "uuid"};
var self = this;
return client.update(params)
return client.put(params)
.then(function() {
return self.get(key);
});
Expand Down

0 comments on commit 2a9b239

Please sign in to comment.