getByResetToken already has the user object

This commit is contained in:
Girish Ramakrishnan
2018-06-15 16:22:28 -07:00
parent 0a0884bf93
commit 491d1c1273

View File

@@ -351,7 +351,7 @@ function getByResetToken(email, resetToken, callback) {
if (error && error.reason === DatabaseError.NOT_FOUND) return callback(new UsersError(UsersError.NOT_FOUND));
if (error) return callback(new UsersError(UsersError.INTERNAL_ERROR, error));
get(result.id, callback);
callback(null, result);
});
}