Use the correct URL for generating pdfs

This commit is contained in:
Eli Ribble 2026-04-17 02:31:57 +00:00
parent 273e2b7b32
commit 09fe773987
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ func ComplianceSend(ctx context.Context, txn bob.Executor, row_id int32) error {
return fmt.Errorf("organization %d has no Lob Address ID", organization.ID)
}
path := fmt.Sprintf("/mailer/mode-3/%s", compliance_req.PublicID)
path := fmt.Sprintf("/mailer/mode-3/%s/preview", compliance_req.PublicID)
content, err := pdf.GeneratePDF(ctx, path)
if err != nil {
return fmt.Errorf("generate pdf: %w", err)