Skip to content

Commit

Permalink
Marius Miliunas - fixed the id in string replacement issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius V Miliunas committed Dec 10, 2013
1 parent 5631684 commit 9671003
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ var oauthInit = function(req, res) {
};

// Get OAuth Token
// callback function from the connect url
var oauthHandleToken = function(req, res) {
var query = req.query;

client.getToken(query.code, function(err, tokens) {
if (err)
callback(err);
else {
callback(null, res);
callback(null, tokens);
}
});
};
Expand Down
4 changes: 2 additions & 2 deletions lib/soundcloud-node.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ _user_id = -> user_id
* @type {[type]}
###
variables =
'{id}': _user_id()
'{id}': _user_id

_applyVariables = (path) ->
path = path.replace(pattern, value) for pattern, value of variables
path = path.replace(pattern, value()) for pattern, value of variables
return path

###*
Expand Down
4 changes: 2 additions & 2 deletions lib/soundcloud-node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9671003

Please sign in to comment.