From 2c3370026db9ca3250fded4c555379898a73ed6d Mon Sep 17 00:00:00 2001 From: Sacha Al Himdani Date: Tue, 5 Aug 2025 09:51:04 +0200 Subject: [PATCH] Add current time to email creation Signed-off-by: Sacha Al Himdani --- pkg/coredata/email.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/coredata/email.go b/pkg/coredata/email.go index bbfb6b426..0181a233f 100644 --- a/pkg/coredata/email.go +++ b/pkg/coredata/email.go @@ -48,12 +48,15 @@ func NewEmail( subject string, body string, ) *Email { + now := time.Now() return &Email{ ID: gid.New(gid.NilTenant, EmailEntityType), RecipientName: recipientName, RecipientEmail: recipientEmail, Subject: subject, TextBody: body, + CreatedAt: now, + UpdatedAt: now, } }