Skip to content

Commit b754750

Browse files
committed
Update service.py
1 parent fd586c5 commit b754750

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/impl/Event/service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,7 @@ def send_slack_mail(self, event_id: int, slackUrl: str, data: BaseToken):
984984
hackers = event.accepted_hackers
985985

986986
for hacker in hackers:
987-
self.mail_client.create_mail(
987+
mail = self.mail_client.create_mail(
988988
MailCreate(
989989
template_id=self.mail_client.get_internall_template_id(
990990
InternalTemplate.EVENT_SLACK_INVITE
@@ -995,6 +995,8 @@ def send_slack_mail(self, event_id: int, slackUrl: str, data: BaseToken):
995995
fields=slackUrl,
996996
)
997997
)
998+
# send the created mail
999+
self.mail_client.send_mail_by_id(mail.id)
9981000

9991001
db.session.commit()
10001002

0 commit comments

Comments
 (0)