diff --git a/packages/component-mail-service/src/Mail.js b/packages/component-mail-service/src/Mail.js index feda512b1dad002710e7a9033ea74b1f39d5c0a6..1678944123bf67eb9e6f2379dcba1043010a85cf 100644 --- a/packages/component-mail-service/src/Mail.js +++ b/packages/component-mail-service/src/Mail.js @@ -27,7 +27,7 @@ module.exports = { const { htmlBody, textBody } = getEmailBody(emailType, replacements) - return await Email.send(email, subject, textBody, htmlBody) + return Email.send(email, subject, textBody, htmlBody) }, setupAssignEmail: async (email, emailType, dashBoardUrl) => { let subject @@ -46,7 +46,7 @@ module.exports = { const { htmlBody, textBody } = getEmailBody(emailType, replacements) - return await Email.send(email, subject, textBody, htmlBody) + return Email.send(email, subject, textBody, htmlBody) }, } diff --git a/packages/components-faraday/src/components/Admin/AddEditUser.js b/packages/components-faraday/src/components/Admin/AddEditUser.js index fb1b7883ca15e06c74905142eb81f00b9a5cb7fc..fa5a61a9b74dcd7775b08038897a0cb894f07227 100644 --- a/packages/components-faraday/src/components/Admin/AddEditUser.js +++ b/packages/components-faraday/src/components/Admin/AddEditUser.js @@ -19,10 +19,7 @@ const onSubmit = (values, dispatch, { isEdit, history }) => { if (!isEdit) { const newValues = setAdmin(values) return create('/users/invite', newValues) - .then(r => { - console.log(r) - history.push('/admin/users') - }) + .then(r => history.push('/admin/users')) .catch(error => { const err = get(error, 'response') if (err) {