Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
arunas-smala committed May 13, 2024
1 parent 333a89b commit d71359f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions services/forms.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,15 +434,10 @@ export default class FormsService extends moleculer.Service {
form.objectName
);

if (
!emailCanBeSent() ||
!object?.name ||
[FormStatus.SUBMITTED].includes(form.status)
)
return;
if (!emailCanBeSent() || !object?.name) return;

// TODO: send email for admins / assignees.
if ([FormStatus.CREATED].includes(form.status)) {
if ([FormStatus.CREATED, FormStatus.SUBMITTED].includes(form.status)) {
return notifyOnFormUpdate(
NOTIFY_ADMIN_EMAIL,
form.status,
Expand Down

0 comments on commit d71359f

Please sign in to comment.