@@ -582,6 +582,7 @@ func (s AuthService) SendMagicLink(ctx context.Context, req *SendMagicLinkReques
|
||||
|
||||
subject, textBody, htmlBody, err := emailPresenter.RenderMagicLink(
|
||||
req.URLPath,
|
||||
tokenString,
|
||||
s.magicLinkTokenValidity,
|
||||
organization.Name,
|
||||
)
|
||||
|
||||
@@ -153,7 +153,7 @@ func (s *CompliancePageService) EmailPresenterConfig(ctx context.Context, compli
|
||||
|
||||
// If logo exists, then we will brand the emails with the org as a sender
|
||||
|
||||
presignedURL, err := s.fm.GenerateFileUrl(ctx, logoFile, 1*time.Hour)
|
||||
presignedURL, err := s.fm.GenerateFileUrl(ctx, logoFile, 7*24*time.Hour)
|
||||
if err != nil {
|
||||
return emailPresenterCfg, fmt.Errorf("cannot generate file URL: %w", err)
|
||||
}
|
||||
|
||||
@@ -593,8 +593,8 @@ func (s *OrganizationService) CreateOrganization(
|
||||
var (
|
||||
fileID = gid.New(tenantID, coredata.FileEntityType)
|
||||
objectKey = uuid.MustNewV7()
|
||||
filename = req.LogoFile.Filename
|
||||
contentType = req.LogoFile.ContentType
|
||||
filename = req.HorizontalLogoFile.Filename
|
||||
contentType = req.HorizontalLogoFile.ContentType
|
||||
now = time.Now()
|
||||
)
|
||||
|
||||
@@ -604,7 +604,7 @@ func (s *OrganizationService) CreateOrganization(
|
||||
MimeType: contentType,
|
||||
FileName: filename,
|
||||
FileKey: objectKey.String(),
|
||||
FileSize: req.LogoFile.Size,
|
||||
FileSize: req.HorizontalLogoFile.Size,
|
||||
CreatedAt: now,
|
||||
UpdatedAt: now,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user