[add]: send email in base service
This commit was merged in pull request #54.
This commit is contained in:
@@ -4,6 +4,7 @@ from flask import jsonify
|
||||
from marshmallow import ValidationError
|
||||
import logging
|
||||
from app.api.integrations import KafkaIntegration
|
||||
from app.utils.mail import send_report_email, get_report_data
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -173,3 +174,6 @@ class BaseService:
|
||||
# return {"rate": 0, "fee": 0, "due_days": 0}
|
||||
|
||||
|
||||
@classmethod
|
||||
def send_mail(cls, report_data, recipients):
|
||||
send_report_email(report_data, recipients)
|
||||
|
||||
Reference in New Issue
Block a user