Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Hotchkiss committed Sep 29, 2011
1 parent 038613a commit 0ca467c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/short.js
Expand Up @@ -33,7 +33,7 @@ short.make = function(URL, callback) {
}; };
}); });
} else { } else {
callback(null, shortenedURLs[0]); short.make(URL, callback);
} }
} }
}); });
Expand Down
1 change: 1 addition & 0 deletions models/ShortURL.js
Expand Up @@ -69,6 +69,7 @@ ShortURL.updateHitsById = function(id, callback) {
}); });
}; };


// test
var nodeTiny = new ShortURL({ var nodeTiny = new ShortURL({
URL : "http://nodejs.org/", URL : "http://nodejs.org/",
hash : "kQ4c" hash : "kQ4c"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"author": "Edward Hotchkiss <e@ingk.com>", "author": "Edward Hotchkiss <e@ingk.com>",
"name": "short", "name": "short",
"description": "Generate, retieve short urls over mongoose/mongodb/express", "description": "Generate, retieve short urls over mongoose/mongodb/express",
"version": "0.0.8", "version": "0.0.9",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/edwardhotchkiss/short.git" "url": "git://github.com/edwardhotchkiss/short.git"
Expand Down

0 comments on commit 0ca467c

Please sign in to comment.