Skip to content
Snippets Groups Projects
Commit 57051732 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

fix(mailing): remove redundant await

parent 8d9e462c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
},
}
......
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment