fix: set confirmation_email_sent after sending email

This commit is contained in:
Jannat Patel
2025-02-10 16:30:31 +05:30
parent 4ee2bfcf32
commit 8857ce8146

View File

@@ -46,7 +46,7 @@ class LMSBatchEnrollment(Document):
outgoing_email_account or frappe.conf.get("mail_login") outgoing_email_account or frappe.conf.get("mail_login")
): ):
self.send_mail() self.send_mail()
self.confirmation_email_sent = 1 self.db_set("confirmation_email_sent", 1)
def send_mail(self): def send_mail(self):
subject = _("Enrollment Confirmation for the Next Training Batch") subject = _("Enrollment Confirmation for the Next Training Batch")