getByAppIdAndType

This commit is contained in:
Girish Ramakrishnan
2015-10-19 08:57:41 -07:00
parent c1ba551e07
commit 322edbdc20

View File

@@ -121,7 +121,7 @@ function authenticate(req, res, next) {
return res.send(500, 'Unknown app.');
}
clientdb.getByAppId(result.id, clientdb.TYPE_PROXY, function (error, result) {
clientdb.getByAppIdAndType(result.id, clientdb.TYPE_PROXY, function (error, result) {
if (error) {
console.error('Unkonwn OAuth client.', error);
return res.send(500, 'Unknown OAuth client.');