Skip to content

Commit

Permalink
Merge pull request #213 from hadfl/double_render
Browse files Browse the repository at this point in the history
patrons: return will only exit eval block, not the whole sub leading …
  • Loading branch information
hadfl authored Apr 20, 2024
2 parents 462da79 + fb6fd32 commit 14fac9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OOCEapps/Controller/Patron.pm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ sub webhook {
format => 'txt')
} ($data->{type}, "$data->{type}.subject");

return $c->render(json => { status => 'error' }) if !($mail && $subj);
die [ "unsupported type for webhook: '$data->{type}'" ] if !($mail && $subj);

OOCEapps::Utils::sendMail(
{ to => $data->{data}{customer}{email}, bcc => $c->config->{emailBcc} },
Expand Down

0 comments on commit 14fac9f

Please sign in to comment.