Skip to content

Commit

Permalink
Merge pull request #34 from datermine/patch-2
Browse files Browse the repository at this point in the history
Fix bug with missing update var & unnecessary update.
  • Loading branch information
edwardhotchkiss committed Oct 3, 2015
2 parents b35a6af + ea37836 commit 9362437
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/short.js
Expand Up @@ -91,7 +91,6 @@ exports.hits = function(hash) {
var query = { hash : hash }
, options = { multi: true };
var retrievePromise = ShortURL.findOne(query);
ShortURL.update(query, update, options, function(){ });
retrievePromise.then(function(ShortURLObject) {
if (ShortURLObject && ShortURLObject !== null) {
promise.resolve(ShortURLObject.hits);
Expand Down

0 comments on commit 9362437

Please sign in to comment.