Skip to content
Snippets Groups Projects
Commit d1ea28f7 authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

feat(component-invite): fix decline invitation

parent c55c14e9
No related branches found
No related tags found
1 merge request!10Sprint #12
......@@ -91,8 +91,9 @@ module.exports = models => async (req, res) => {
)
if (reason !== undefined) {
invitation.reason = reason
await collection.save()
}
await collection.save()
try {
if (invitation.role === 'handlingEditor') {
await mailService.sendSimpleEmail({
......
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