Skip to content

Commit

Permalink
fix: fixed random email parsing conditions
Browse files Browse the repository at this point in the history
wwoytenko committed Aug 16, 2024
1 parent d44b0dc commit 528b654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/postgres/transformers/email.go
Original file line number Diff line number Diff line change
@@ -260,7 +260,7 @@ func (rit *EmailTransformer) Transform(ctx context.Context, r *toolkit.Record) (
}

func (rit *EmailTransformer) setupTemplateContext(originalEmail []byte, r *toolkit.Record) error {
if rit.localPartTemplate != nil && rit.domainTemplate != nil && !rit.keepOriginalDomain {
if rit.localPartTemplate == nil && rit.domainTemplate == nil && !rit.keepOriginalDomain {
return nil
}
rit.rrctx.setRecord(r)

0 comments on commit 528b654

Please sign in to comment.