Skip to content

Commit

Permalink
Merge pull request #5 from dochq/GE-132
Browse files Browse the repository at this point in the history
GE-132: refactor tracking setting
  • Loading branch information
AssylzhanZharzhanov authored Jun 19, 2023
2 parents 8515170 + 453baeb commit 4113eb7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/sendgrid/rest v2.6.9+incompatible
github.com/sendgrid/sendgrid-go v3.11.1+incompatible
github.com/sendgrid/sendgrid-go v3.12.0+incompatible
google.golang.org/grpc v1.46.0
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ github.com/sendgrid/rest v2.6.9+incompatible h1:1EyIcsNdn9KIisLW50MKwmSRSK+ekuei
github.com/sendgrid/rest v2.6.9+incompatible/go.mod h1:kXX7q3jZtJXK5c5qK83bSGMdV6tsOE70KbHoqJls4lE=
github.com/sendgrid/sendgrid-go v3.11.1+incompatible h1:ai0+woZ3r/+tKLQExznak5XerOFoD6S7ePO0lMV8WXo=
github.com/sendgrid/sendgrid-go v3.11.1+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8=
github.com/sendgrid/sendgrid-go v3.12.0+incompatible h1:/N2vx18Fg1KmQOh6zESc5FJB8pYwt5QFBDflYPh1KVg=
github.com/sendgrid/sendgrid-go v3.12.0+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
Expand Down
3 changes: 2 additions & 1 deletion sendgrid/sendgrid.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ func SendEmail(sendGridEmailTmpl string, headers map[string]string, fromEmail *m

sendData.TrackingSettings = &mail.TrackingSettings{
SubscriptionTracking: &mail.SubscriptionTrackingSetting{
Enable: helpers.PointerBool(allowUnsub),
Enable: helpers.PointerBool(allowUnsub),
SubstitutionTag: "[unsubscribe_url]",
},
}

Expand Down

0 comments on commit 4113eb7

Please sign in to comment.