Use clients.get() instead of clientdb.get()

This commit is contained in:
Johannes Zellner
2016-06-13 13:51:14 +02:00
parent 15cf83b37c
commit f284b4cd83
+1 -1
View File
@@ -207,7 +207,7 @@ function getClientTokensByUserId(clientId, userId, callback) {
tokendb.getByIdentifierAndClientId(userId, clientId, function (error, result) {
if (error && error.reason === DatabaseError.NOT_FOUND) {
// this can mean either that there are no tokens or the clientId is actually unknown
clientdb.get(clientId, function (error/*, result*/) {
get(clientId, function (error/*, result*/) {
if (error) return callback(error);
callback(null, []);
});