diff --git a/apps/notification/backend/services/template_message_service.py b/apps/notification/backend/services/template_message_service.py index 11cf2b1..046e69d 100644 --- a/apps/notification/backend/services/template_message_service.py +++ b/apps/notification/backend/services/template_message_service.py @@ -1,4 +1,5 @@ from backend.models.models import MessageTemplateDoc +from datetime import datetime class TemplateMessageService: ## operations for global templates, conducted by platform admin @@ -79,7 +80,7 @@ class TemplateMessageService: results.append({"template_id": template_id, "success": True, "template_db_id": str(new_template.id)}) return results - # Custome templates by tenant + # Custom templates by tenant async def create_template(self, template:MessageTemplateDoc, tenant_id: str): template.tenant_id = tenant_id return await template.create()