fix(server): error on claim certification
This commit is contained in:
@ -289,12 +289,12 @@ function createVerifyCert(certTypeIds, app) {
|
|||||||
// sends notification email is user has all 6 certs
|
// sends notification email is user has all 6 certs
|
||||||
// if not it noop
|
// if not it noop
|
||||||
sendCertifiedEmail(user, Email.send$),
|
sendCertifiedEmail(user, Email.send$),
|
||||||
({ count }, pledgeOrMessage) => ({ count, pledgeOrMessage })
|
(_, pledgeOrMessage) => ({ pledgeOrMessage })
|
||||||
).map(({ count, pledgeOrMessage }) => {
|
).map(({ pledgeOrMessage }) => {
|
||||||
if (typeof pledgeOrMessage === 'string') {
|
if (typeof pledgeOrMessage === 'string') {
|
||||||
log(pledgeOrMessage);
|
log(pledgeOrMessage);
|
||||||
}
|
}
|
||||||
log(`${count} documents updated`);
|
log('Certificates updated');
|
||||||
return successMessage(user.username, certName);
|
return successMessage(user.username, certName);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user