Merge pull request #7995 from FreeCodeCamp/fix/claim-certificate

Fix typo in claim certificate api
This commit is contained in:
Quincy Larson
2016-04-08 14:58:20 -07:00

View File

@ -84,7 +84,7 @@ export default function certificate(app) {
function verifyCert(certType, req, res, next) { function verifyCert(certType, req, res, next) {
const { user } = req; const { user } = req;
return user.getChallengeMap() return user.getChallengeMap$()
.flatMap(() => certTypeIds[certType]) .flatMap(() => certTypeIds[certType])
.flatMap(challenge => { .flatMap(challenge => {
const { const {